Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML to PDF on the fly

Status
Not open for further replies.

cakeday

Programmer
Nov 5, 2003
6
US
Hi all,

I have a webpage, which displays the records queried from the oracle database on the web using HTML table(s).

I want to give the users a button,which upon clicked should exports whatever is on the webpage to a PDF FORMAT.

I cannot hardcode and have a .PDF file sitting on the server, because in my webpage the parameters are passed dynamically, so i need to create the PDF file on the fly.

So can anyone tell me, how to do this. Any sample codes or links will be very useful. Thank you in advance.

i accomplished exporting HTML TO EXCEL ON THE FLY USING THE FOLLOWING SYNTAX,

Before i write my table, put this above it.
<%
Response.ContentType = &quot;application/vnd.ms-excel&quot;
%>
<table>
<tr>
<td>field1</td><td>field2</td><td>field3</td>
<td>field1</td><td>field2</td><td>field3</td>
</tr>
</table>

I am trying to accomplish exporting HTML to PDF on the fly using the same concept and the following syntax,
<%
Response.ContentType = &quot;application/pdf&quot;
%>

But for some reason, this does not seem to work. Is there anything else that i might need to accomplish the same?
Do i need any adobe plug-ins on my server?

Any help on this will be highly appreciated.

Thank you.
 
search into Active PDF toolkit Component. You can create PDF in memory on the fly.



[tt]Many .asp question and answers are now in downloadable pdf format and can be found here: thread333-721855
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top