Click here to Skip to main content
15,908,834 members

Comments by Whictopis (Top 3 by date)

Whictopis 31-May-17 5:11am View    
Just for a consideration, you could avoid the usage of excel's interop automation and word's interop automation by using libraries that can enable you to do these tasks.
For instance see here how to convert:
- powerpoint to pdf in c#
- word to pdf in c#
- excel to pdf in c#
Whictopis 31-May-17 5:00am View    
You could try this alternative PDF library for C#, it provides a very simple and straightforward way to convert ASPX to PDF.
Whictopis 31-May-17 4:49am View    
Here is something that works:

ExcelFile xlWorkBook = ExcelFile.Load(path);
ExcelWorksheet xlWorkSheet = xlWorkBook.Worksheets[0];
xlWorkSheet.Cells.GetSubrange("A1", "F10").Style.NumberFormat = "@";
xlWorkSheet.Cells.GetSubrange("H1", "O10").Style.NumberFormat = "@";

The code demonstrates how to use excel range's in C# with a help of this C# library for excel files.