8 Answers, 1 is accepted
You cannot export images since you cannot embed images in the supported formats. For PDF export you can check this blog post for more info.
Best wishes,Vlad
the Telerik team
For PDF export we are following the same approach as mentioned in http://blogs.telerik.com/vladimirenchev/posts/10-11-11/pdf_export_with_radgridview_for_silverlight_q3_2010.aspx we are getting error like unsupported file format. looks it is unable to get the providerextension (.pdf):
***************code we have written
document.LayoutMode = DocumentLayoutMode.Paged;
document.Measure(RadDocument.MAX_DOCUMENT_SIZE);
document.Arrange(new RectangleF(PointF.Empty, document.DesiredSize));
var extension = System.IO.Path.GetExtension(saveDialog.SafeFileName);
var provider = DocumentFormatProvidersManager.GetProviderByExtension(extension);
if (provider == null)
{
MessageBox.Show("Unsupported file format.");
return;
}
***************************
Any help in this regard?
thanks,
Prakash K
Please verify if the relevant assembly is referenced in your project.
Regards,Vlad
the Telerik team
Could you please let me know the name of relevant assembly to be referenced. Best if you can attach a working sample project.
Regards,
Prakash K
You can check the project attached in my blog post for more info.
All the best,Vlad
the Telerik team
We have referenced the required dll which is ”Telerik.Windows.Documents.FormatProviders.Pdf” version 2010.3.1110.1040 in our project.
Is there anything else needs to be referenced. Best if you can attach a working sample project
thanks,
Prakash K
You can check my first reply for more info.
Best wishes,Vlad
the Telerik team
But when we added same DLL in our project returning NULL extension
Screen shot attached which can give you some clue. Is there anything related to data/columns.
Regards,
Prakash K
