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

Export Grid to PDF without Full Trust

4 Answers 66 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ashalan
Top achievements
Rank 1
ashalan asked on 04 Feb 2010, 03:24 PM
Hello,

I am trying to export a grid to PDF on shared hosting. From what I can tell PDF export needs full trust to write a temporary pdf to the server. I do not have full trust on the server.
Is there a way to export the PDF to MemoryStream and then write the MemoryStream's content using something like:
Response.ContentType = "application/pdf";
Response.AddHeader("Content-Type", "application/pdf");
Response.BinaryWrite(....);
Response.Ende();

?

4 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 09 Feb 2010, 04:41 PM
Hello Ashalan,

This won't do the trick since the PDF engine generates the temporary file internally. Our developers will research this limitation, although I doubt there is a feasible way to address it.
RadGrid
collects some data using P/Invokes and unfortunately it is hard (or even impossible) to avoid it.

Kind regards,
Daniel
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
Roger
Top achievements
Rank 1
answered on 06 Apr 2011, 04:28 PM
Has there been any update on allowing export functionality in a NON full trust envrionment?

0
Daniel
Telerik team
answered on 11 Apr 2011, 09:59 PM
Hello Roger,

I'm afraid we haven't found a way to sidestep this limitation.
Sorry for the inconvenience.

Kind 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.

0
Brecht
Top achievements
Rank 1
answered on 27 Apr 2011, 01:54 PM
I'm also in need of this functionality. I hope it gets added in the future ...
Tags
Grid
Asked by
ashalan
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Roger
Top achievements
Rank 1
Brecht
Top achievements
Rank 1
Share this question
or