Window Application
How to Convert xls to pdf and Docs to pdf in Window APplication in C#
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Former memberPosted Sep 24, 2013, 9:35 PM EDT
Convert xls to PDF.
using System; using System.IO; using msExcel = Microsoft.Office.Interop.Excel; namespace demo { public class ExcelToPdfConverter { private static object missing = System.Reflection.Missing.Value; public static void ConvertExcelToPdf(string excelFileIn, string pdfFileOut) { msExcel.Application excel = new msExcel.Application(); try { excel.Visible = false; excel.ScreenUpdating = false; excel.DisplayAlerts = false; FileInfo excelFile = new FileInfo(excelFileIn); string filename = excelFile.FullName;Covnert doc to PDF
http://msdn.microsoft.com/en-us/library/bb412305.aspx
Hope this helps you !