|103612||May 16,2012 02:16 PM||May 25,2012 08:42 AM||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.