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

Export images to pdf

5 Answers 204 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Navneet
Top achievements
Rank 1
Navneet asked on 08 Apr 2010, 10:52 AM
Hi,
I am facing an issue with RadGrid.When I click to export to pdf, I'm  getting an error as follows:-

System.SystemException: Error while creating area : Encountered web exception while fetching image from http://<servername>/Shared Pictures/baby.jpg: The remote server returned an error: (401) Unauthorized.
  at Telerik.Web.Apoc.ApocDriver.FireApocError(String message)
  at Telerik.Web.Apoc.Fo.Flow.ExternalGraphic.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.TableCell.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.TableRow.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.AbstractTableBody.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Table.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area, Region region)
  at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree)
  at Telerik.Web.Apoc.StreamRenderer.Render(PageSequence pageSequence)
  at Telerik.Web.Apoc.Fo.FOTreeBuilder.EndElement()
  at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)

I am using RadGrid in SharePoint.


Thanks,
Navneet

5 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 08 Apr 2010, 08:07 PM
Hello Navneet,

Please try to copy the picture within your project - judging by the error message, RadGrid doesn't have read access to the file (in the location you specified).

Kind regards,
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Navneet
Top achievements
Rank 1
answered on 09 Apr 2010, 06:26 AM
Thanks for Reply.
Images are coming from search result and I bind the search result with radgrid.So,that is not possible copy the image in project.
Can you tell me another way to export these images.

 
0
Daniel
Telerik team
answered on 14 Apr 2010, 04:58 PM
Hello Navneet,

Please logout of your site and then try to request the image through your browser.

Looking forward to hearing from you.
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Navneet
Top achievements
Rank 1
answered on 20 Apr 2010, 07:38 AM
 
Can you tell me how to export images to pdf in sharepoint?
0
Daniel
Telerik team
answered on 23 Apr 2010, 01:13 PM
Hello Navneet,

You can export images (in PDF file) in Sharepoint in the same way as it was a normal ASP.NET site.

Please examine the attached files for more information.

Best regards,
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Navneet
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Navneet
Top achievements
Rank 1
Share this question
or