This is a migrated thread and some comments may be shown as answers.

[Solved] Export

8 Answers 177 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
prakash
Top achievements
Rank 1
prakash asked on 09 Feb 2011, 01:52 PM
Hi

I have one template column in rad grid for silverlight which has an image. But the image doesnt get exported.? Also I dont see any capability to export into PDF?

8 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 09 Feb 2011, 02:16 PM
Hello,

 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
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
prakash
Top achievements
Rank 1
answered on 10 Feb 2011, 12:47 PM
Thanks Vlad, 
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

0
Vlad
Telerik team
answered on 10 Feb 2011, 01:20 PM
Hi,

 Please verify if the relevant assembly is referenced in your project. 

Regards,
Vlad
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
prakash
Top achievements
Rank 1
answered on 11 Feb 2011, 11:59 AM
Thanks,
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 
0
Vlad
Telerik team
answered on 11 Feb 2011, 01:01 PM
Hello,

 You can check the project attached in my blog post for more info.

All the best,
Vlad
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
prakash
Top achievements
Rank 1
answered on 11 Feb 2011, 01:05 PM
Could you please let us know the URL of the blog?

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
0
Vlad
Telerik team
answered on 11 Feb 2011, 01:06 PM
Hello ,

You can check my first reply for more info. 

Best wishes,
Vlad
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
prakash
Top achievements
Rank 1
answered on 11 Feb 2011, 01:27 PM
Yes you are right sample downloaded from  http://blogs.telerik.com/vladimirenchev/posts/10-11-11/pdf_export_with_radgridview_for_silverlight_q3_2010.aspx is working fine. I mean returning correct extension.


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
 

Tags
GridView
Asked by
prakash
Top achievements
Rank 1
Answers by
Vlad
Telerik team
prakash
Top achievements
Rank 1
Share this question
or