string xlsfilename = ConfigurationManager.AppSettings["XLSFilesPath"] + "ps20180113.xls"; string pdffilename = ConfigurationManager.AppSettings["PDFFilesPath"] + "testps20180113.pdf"; Microsoft.Office.Interop.Excel.Application excel = new Microsoft.Office.Interop.Excel.Application(); Microsoft.Office.Interop.Excel.Workbook wbv = excel.Workbooks.Open(xlsfilename); Microsoft.Office.Interop.Excel.Worksheet wx = excel.ActiveSheet as Microsoft.Office.Interop.Excel.Worksheet; if (File.Exists(pdffilename)) { File.Delete(pdffilename); } wbv.ExportAsFixedFormat(Excel.XlFixedFormatType.xlTypePDF, pdffilename); wbv.Close(true, Type.Missing, Type.Missing); excel.Quit();The above C# code creates a .pdf from an Excel Worksheet