Local foldername prepended to UNC Path

row118

Member
Joined
Feb 4, 2006
Messages
21
Programming Experience
5-10
VB.NET:
dim filenameFmt as string = "\\resource_center\reports\{0}_sales.xls"

Dim dlyOutline As New PdfOutline(m_pageoutline, New PdfAction(String.Format(FilenameFmt, GetFileDateString(tmpDte))), DateTime.now.ToString("MM/dd/yyyy"))

My local drive name keeps being prepended to UNC and causes error:

VB.NET:
cannot find 'file:///c:/temp/resource_center/reports/2010_03_29_sales.xls

What am i doing wrong? is this a Itextsharp problem maybe?
 
If i put this in debugger:
VB.NET:
String.Format(FilenameFmt, GetFileDateString(tmpDte))), DateTime.now.ToString("MM/dd/yyyy"))
I get
VB.NET:
\\resource_center\reports\2010_03_29_sales.xls

Which is exactly the URL I would like to link to.
(where 2010_03_29 is the return value my custom GetFileDateSTring which is what it should be. note in example i used 03-29 and not datetime.now)

In the meantime, I am using the http: protocol to get to the resource which works.
 
Back
Top