Reputation: 81
How can I convert datagrid to PDF?
Upvotes: 2
Views: 3365
Reputation: 97821
The problem you have is "how do you want it laid out?". You can use something like iTextSharp, which is a great library, but not that good at laying out simple stuff like this. I would instead create an RDLC-based report using VS's Report Designer, and then use the LocalReport class's Render() method to render the report, using your dataset as the data source, to PDF.
Upvotes: 1