Hi Guys,
I've downloaded the trial version of Prince and installed it on my web server.
I can't seem to work out how to make the following work. I need to be able to create an actual PDF document which is viewed in the browser or opened straight after the conversion. The user can then choose to print/save the PDF.
Even though the below code renders a PDF in a browser, if you right-click the page, it's actually still a .aspx page.
I want to be able to do what this http://www.princexml.com/2005/forms/ Prince example does. If I can open it up in a browser, even better, but opening up in an Adobe window is a good start.
Thanks for your help.
I've downloaded the trial version of Prince and installed it on my web server.
I can't seem to work out how to make the following work. I need to be able to create an actual PDF document which is viewed in the browser or opened straight after the conversion. The user can then choose to print/save the PDF.
Even though the below code renders a PDF in a browser, if you right-click the page, it's actually still a .aspx page.
Prince prince = new Prince("\\\\[SERVER]\\Prince\\Engine\\Bin\\Prince.exe");
Response.Filter = new PrinceFilter(prince, Response.Filter);
Response.AddHeader("Content-Type", "application/pdf");
I want to be able to do what this http://www.princexml.com/2005/forms/ Prince example does. If I can open it up in a browser, even better, but opening up in an Adobe window is a good start.
Thanks for your help.