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

Exception when export to PDF

3 Answers 175 Views
Grid
This is a migrated thread and some comments may be shown as answers.
william
Top achievements
Rank 1
william asked on 12 May 2011, 09:26 AM
Hi,
    I am using RadGrid in my webpart in SP2010. When i want to export data to PDF, it throw exception "Error while creating area : Encountered web exception while fetching image from http://win9ksjnedl5ga/my/personal/test/test2/Test3/TestForm2/_layouts/MyProduct/WAResources/Invariant/Images/DownArrowButton.gif: The remote server returned an error: (401) Unauthorized."
    It have a picture in the first column in the RadGrid. When i click it , a context menu will be shown.  If i delete the picture from the RadGrid , it can export to PDF correctly.
   Any suggesttion will be appreciated.

Thanks ,
William

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 12 May 2011, 11:45 AM
Hello William,

Check out the following demo which demonstrates the exporting to pdf with image.
Grid / Export to PDF

Thanks,
Shinu.
0
william
Top achievements
Rank 1
answered on 13 May 2011, 06:46 AM
Hi Shinu,
    I notice that "Anonymous Authentication" of sharepoint site is "Disabled" in IIS6.0 . When i set it to "Enable" , it can export to PDF correctly . But the problem is that i can not change anything in IIS.  To this issue , do you have any other better suggestion?

William
0
Daniel
Telerik team
answered on 16 May 2011, 01:12 PM
Hello William,

Do you use the latest version of RadControls for ASP.NET AJAX? If this is not so, can you please check whether you still get the same exception if you use the newest version?

Best regards,
Daniel
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
william
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
william
Top achievements
Rank 1
Daniel
Telerik team
Share this question
or