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

i use template field in gridview. Inside it iam using itemtemplate and inside i use div
to style the gridview ,it is ok in browser but not in pdf file.so please help.
Posted
Comments
Dharmesh Kanzariya 18-Oct-13 5:44am    
you can get same data in the pdf as gridview right friend ?
Thomas ktg 18-Oct-13 6:26am    
Could you provide the code you have used that would be better to give the solution.
ridoy 18-Oct-13 7:44am    
I think you can export whole asp.net page to pdf, that may solve the problem.

Hi,

you can use itextsharp.

http://www.codeproject.com/Articles/200079/All-in-One-Export-Data-in-ASP-NET

Thanks,
Rohit
 
Share this answer
 
I think you are looking for an export to pdf functionality . Check the CP link below to know how to export to pdf .

[^]
 
Share this answer
 
Hi, how are you creating PDF file? I think the standard approach is to call RenderControl on GridView to retrieve the HTML and then convert it to PDF.
Here are few resources I hope they help:
export gridview to pdf format in asp.net[^]
Export web page with images to PDF[^]
Convert HTML to PDF in C#[^]
 
Share this answer
 

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