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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Calling .Save() multiple times

Thread ID:

Created:

Updated:

Platform:

Replies:

62857 Jun 23,2007 03:08 PM UTC Jun 25,2007 10:35 AM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: PDF
Lars
Asked On June 23, 2007 03:08 PM UTC

I'm having some problems when calling .Save() multiple times.

First I'm saving to a Stream and then I'm saving the file to disk. However, when I open the file on disk Adobe PDF complains that it is corrupted and cannot be read. If I don't save to Stream before saving to disk, the file is not corrupted and opens fine.

Here's the general outline of my code:

MemoryStream stream = new MemoryStream();
pdfDoc.Save(stream);
pdfDoc.Save(HttpContext.Current.Server.MapPath("/PdfCache") + "PdfFile.pdf");

Melba Winshia [Syncfusion]
Replied On June 25, 2007 10:35 AM UTC

Hi Lars,

I was able to reproduce the problem. Could you please open a new direct – trac incident with subject line as Forum 62857 - DCalling .Save() multiple times ? So that it would be possible for us to provide more details regarding this issue.

Kindly let me know if you have any other questions.

Thanks,
Melba

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

;