Dear Friends,
How to open File PDF File while Enter Invoice Number that PDF i have local Folder. I want reterive PDF File through AppConfing file.
For Example Enter Invoice No, i want show that invoice corresponding PDF using Windows Application.
Thanks&Regs
Manavalan
Loading
Glen LewisPosted Jul 11, 2014, 7:28 AM
Nevertheless here is something I presume you need.
If you have an app.config file, as you menthioned, that contains locations of invoicing PDFs then you can just retrieve that location with ConfigurationManager and use Process.Start to open that PDF in the machine's default application for PDF format, something like the following:
string pdfInvoice1 = ConfigurationManager.AppSettings["1"];
Process.Start(pdfInvoice1);
If I'm mistaken and you actually need to generate a new invoice, then check out this article how to create a new PDF file in C#.
Rahul PrasadPosted Jun 3, 2014, 2:22 AM
create PDF documents dynamically-
http://www.e-iceblue.com/Knowledgebase/Spire.PDF/Program-Guide/How-to-create-PDF-dynamically-and-send-it-to-client-browser-using-ASP.NET.html
does this help?
Tom SwagerPosted Jun 1, 2014, 1:04 PM
Sanjay KumarPosted Apr 4, 2014, 12:30 PM
http://www.aspmemo.net/2014/01/how-to-generate-invoice-form-as-pdf.html
http://www.4guysfromrolla.com/articles/030911-1.aspx