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

set save file path for PDF Document

Thread ID:

Created:

Updated:

Platform:

Replies:

97590 Dec 15,2010 02:56 AM UTC Dec 16,2010 01:52 PM UTC Silverlight 3
loading
Tags: PDF
Karl Whitehead
Asked On December 15, 2010 02:56 AM UTC

Does anyone know if you can set the path for the pdf file to be saved without using a SaveFile dialog?


Priyadharshini J [Syncfusion]
Replied On December 15, 2010 10:55 AM UTC

Hi Karl,

Thank you for your interest in syncfusion products.

We can set the path for the pdf file to be saved without using a SaveFile dialog, as in the code below:
string filepath = @"App_Data\Sample.pdf";
doc.Save(Server.MapPath (filepath));


We can also save the pdf file in MemoryStream, as in the code below:
MemoryStream ms = new MemoryStream();
doc.Save(ms);


I have placed a sample to do the same in the link below:
975901661930505.zip

Kindly try this and let us know if you have any queries

Regards,
Priyadharshini


Karl Whitehead
Replied On December 15, 2010 11:03 PM UTC

How would you do this inside a silverlight application?
Server.MapPath needs a using System.Web reference.

I am trying to implement this in a SL4 app.


Priyadharshini J [Syncfusion]
Replied On December 16, 2010 01:52 PM UTC

Hi Karl,

Thank you for the details.

Currently we do not provide support to save a pdf document on the specified path and it is under further investigation. We will get back to you with the details once it has been resolved.

Please let us know if you have any queries.

Regards,
Priyadharshini




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

;