Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
datagridview to pdf export

i got the partial solution with itextSharp
the problem with that is page orientation landscape not available

please help
Posted

If u want landscape mode then set it in the page setting
the code looks like this
Document doc = new Document(PageSize.
 
Share this answer
 
You are using iTextSharp.then please try below property.

document is the object of Document.
C#
document.SetPageSize(iTextSharp.text.PageSize.A4.Rotate());
 
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