|103612||May 16,2012 06:16 PM UTC||May 25,2012 12:42 PM UTC||WPF||1|
How would I export a griddata control to a pdf?
Thanks for your update .
You can achieve your requirement by using the following code snippet.
SaveFileDialog sfd = new SaveFileDialog
DefaultExt = ".pdf",
Filter = "Adobe PDF Files(*.pdf)|*.pdf",
FilterIndex = 1,
RestoreDirectory = true
if (sfd.ShowDialog() == true)
using (Stream stream = sfd.OpenFile())
document = this.dataGrid.Model.ExportToPdfGridDocument(GridRangeInfo.Table());
we have created a sample application using this and it can be downloaded from the below location.
Sample location: ExportToPDF.zip
Please let us know if you have any questions.
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.