Click here to Skip to main content
15,885,916 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am trying to find a way to return a programatically created pdf to the browser without saving the file on the server.

My code creates a PDF object(I use the well known Aspose library for that)

What i want now is rater than to save a file just return it as is back to the browser. The pdf-object has a method that returns the byte[] and i figure i need to do something with that...

So after adding headers and content types which i would do something like

Response.WriteFile(myPDF.GetBytes());
Response.End();


Please help me.

Thanks in Advance.
Posted
Updated 10-Jul-11 23:23pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900