set save file path for PDF Document

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


3 Replies

PJ Priyadharshini J Syncfusion Team 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



KW Karl Whitehead 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.



PJ Priyadharshini J Syncfusion Team 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




Loader.
Up arrow icon