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 = "application/vnd.ms-excel"
%>
<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 = "application/pdf"
%>
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.
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 = "application/vnd.ms-excel"
%>
<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 = "application/pdf"
%>
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.