Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a Asp.net C# webapplication .I Export pdf file in my page,and when i click exportdata then a pdf file is exported but it automatically save in Downloads folder of my systen but I want to Save following pdf into a folder which is inside my Application.Is it possible through coding or some other way. Plz Help...

Thanks....
Posted
Updated 27-Jan-14 23:26pm
v2

Hi Bhati,

may be following link will guide you how you can do that ...
saving-generated-pdf-in-the-database-using-c-sharp]

this link
Save a PDF Document into a Folder inside your project in c#[^]
 
Share this answer
 
v2
Comments
ErBhati 28-Jan-14 1:38am    
not into database i want to save into a folder inside application.
giri001 28-Jan-14 2:08am    
please check with 2nd one.
ErBhati 28-Jan-14 2:29am    
I ahve checked but in this the solution for uploading not for exporting thanks.
I found the solution

C#
iTextSharp.text.Document oDoc = new iTextSharp.text.Document();
PdfWriter.GetInstance(oDoc, new FileStream("HelloWorld.pdf", FileMode.Create));
oDoc.Open();
oDoc.Add(new Paragraph("Hello World!"));
oDoc.Close();
 
Share this answer
 
 
Share this answer
 
v3
Comments
ErBhati 28-Jan-14 5:27am    
Please first read my Question clearly...Thanks
V5709 29-Jan-14 2:34am    
My friend, you modified your question later..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900