Save pdf in file folder

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v5)  /  Re: Save pdf in file folder

DynamicPDF CoreSuite for .NET (v5) Forum

 Oct 23 2009 3:00 PM
Hi,

How do I save the genereate pdf into a file location? I don't want draw to web but i want save the pdf into file folder.

 DynamicPDF.Document thePDF = theReport.Generate();

Thanks,
sri.
 Oct 23 2009 4:26 PM
Posted by a ceTe Software moderator
Hello Sri,

You can use the Draw method that takes the filepath. It will allow you to save the PDF physically to the filesystem.

Thanks,
ceTe Software Support Team
 Oct 23 2009 5:57 PM
Hi,

Thanks. I used draw method but I get an error like "Access to path "@C:\Dev" is denied".

Do I need to setup an security? How do I handle thin on production server?

Thanks,
Sri.
 Oct 26 2009 6:53 AM
Posted by a ceTe Software moderator
Hello Sri,

It looks like you do not have permission to save the file in that location. Please make sure that the user account which is writing this file have permissions to save the file in that location. You may have to give permissions to the IUSER_MACHINENAME or ASPNET accounts or you will have to use a folder where it has permissions.

Thanks,
ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 12:36 AM.