Opening a PDF in ASP.net site deployed to server
Posted on 2013-07-02
Hi, I have an asp.net that creates a pdf file and saves it to the c drive. Once it has been saved I would like the pdf document top open for the user. When creating the site in visual studio i used 'System.Diagnostics.Process.Start(path2)' which worked perfectly.
Now I have deployed to a serer and Process.Start doesnt work. I think it may be something to do with permissions but i'm not sure where to look. Could somebody advise?
Alternatively I have tried the code below, this works great but it opens the document in the current window. Is there a method of opening the docuemnt in a new browser window?:
Response.ContentType = "application/pdf"