We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Can't save pdf file in UAG site

Thread ID:

Created:

Updated:

Platform:

Replies:

106870 Jan 30,2013 06:25 AM UTC Feb 4,2013 05:25 AM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: PDF
Lee K
Asked On January 30, 2013 06:25 AM UTC

Hello Syncfusion Team!.
I have a problem with export html to pdf file in UAG with SharePoint 2013.
Html file have been saved to local disk but it can't convert to pdf after waiting for about 2-3 minutes. It's only happened on UAG. (http and https environment is ok).
Please see my attached files.
Can anyone help me how to fix this.
Thanks in advance!.




ErrorImages_db201d37.rar

Geetha M [Syncfusion]
Replied On February 4, 2013 05:25 AM UTC

Hi Lee,

Thank you for your interest in Syncfusion products.

Could you please try to save the document as Stream and then send it using HttpResponse? Here is the code snippet:

Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
Response.ContentType = "application/pdf";
for (int i = 0; i < stream.Length; i++)
{
    int b = stream.ReadByte();
    if (b > -1) Response.OutputStream.WriteByte((byte)b);
}

Response.Flush();
Response.Close();

Regards
Geetha

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;