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

I have a data in the database,that data should convert to pdf....that pdf i should display in iframe


Please give me some relevent answer,,,i searched in google,,didn't got appropriate code.....



please....
Posted
Updated 27-Jun-12 18:38pm
v2

1 solution

You will probably want to first generate a report using the data that you also display in the gridview. If you use Crystal Reports to generate the report, there is an option to export the report as a PDF. I suggest you start by researching that. (there are other report generators you could look at too).

There are many articles on Code Project that can help you. Here[^] is a link to the article search for "Crystal Reports".

Here[^] is one article I found that discusses how to export a Crystal Report to a PDF without using a Report Viewer.

Hope this helps.
 
Share this answer
 
Comments
Member 9155255 28-Jun-12 0:30am    
I have a data in the database....that data i am binding in gridview in backend but not showing in gridview,,,,,that binded data i has to show in pdf within iframe....
Kschuler 28-Jun-12 8:35am    
And I just gave you one example of how to create a PDF out of it. If you are not displaying the data in the grid, then there really is no reason for the grid. You can use the dataset or datatable that you pull from your database and send it into a crystal report.

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