Saving Exported PDF in physical path

Hi,

I have a requirement like while exporting into pdf, shall i save it in the any physical path instead of
open with or save file dialog box.

I am trying with below code, but i am getting error

Dim sfilename As String = myReportHeading & “.pdf”
sfilename = Replace(sfilename, " ", “”)
pdf.Save(“C:” & sfilename, SaveType.OpenInAcrobat, Response)
Response.End()

Please suggest me how to done this.

Thanks,
Veeru1.

Hello Veeru,

Thanks for using our products.

In order to save the resultant PDF over some physical location, please try using the following overloaded method.

Pdf.Save("c:/pdftest/mysample.pdf");

In case it does not satisfy your requirements or you have any further query, please feel free to contact.