venderprint pdfForm = new venderprint(GetTable(), Server.MapPath("~/images/logopdf.png")); // Create a MigraDoc document Document document = pdfForm.CreateDocument(); document.UseCmykColor = true; // Create a renderer for PDF that uses Unicode font encoding PdfDocumentRenderer pdfRenderer = new PdfDocumentRenderer(true); // Set the MigraDoc document pdfRenderer.Document = document; // Create the PDF document pdfRenderer.RenderDocument(); // Save the PDF document... string filename = "VendorInformation.pdf"; pdfRenderer.Save(Server.MapPath("~/File/"+filename)); Process.Start(Server.MapPath("~/File/" + filename));
Process.Start(Server.MapPath("~/File/" + filename));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)