changing path of FileMode.CreateNew

Posted by Shoyebaziz123 under ASP.NET on 6/11/2012 | Points: 10 | Views : 1718 | Status : [Member] | Replies : 2
Hi All,

i am using pdfcrowd dll for converting html to pdf...my problem is that there is a method for pdf creation

fileStream = new FileStream(repame, FileMode.CreateNew);

while using this the file is created at C:\\Program Files\\Common Files\\Microsoft Shared\\DevServer\\10.0\\
now i want to change the path to my server folder , what i have to do ?


Thanks




Responses

Posted by: hareeshkumarkr-16190 on: 6/11/2012 [Member] Starter | Points: 25

Up
0
Down
hi,
check the bellow link u ll get some idea
http://www.codeproject.com/Articles/7089/Generate-PDF-documents-from-a-HTML-page-using-ASP

Shoyebaziz123, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Santhiram on: 6/11/2012 [Member] Starter | Points: 25

Up
0
Down
what is this "repame" you r using in urcode..?

generally in the first argument of Filestream class in create mode,you can specify the path where you want the file to be created like this..

FileStream fileStream = new FileStream(@"c:\file.txt", FileMode.Create);

Shoyebaziz123, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response