I am testing the free version of Spire.XLS as part of a test to see if it will do what we need.
I have an Excel file that gets fully populated by another program. When I convert this using Spire.XLS linked in to my C# program (.NET 3.5), it converts to PDF easy enough but the output is smaller on the page than if I had done an "Export" to PDF using MS Excel.
Everything else looks great, it is just smaller on the page than what Excel would do. It looks maybe 10% smaller, and the extra space is all on the right side, left margin is at the same position on the page.
I am wondering if there is an easy solution to this?
My code for conversion is very simple:
----------
string inputFileName = "ExcelInputFile.xlsx";
string outputFileName = "ExcelOutputFile.pdf";
Workbook wb = new Workbook();
wb.LoadFromFile(inputFileName );
wb.SaveToFile(outputFileName, FileFormat.PDF);
----------
Do I need to do any setup on the Excel file? It has only one worksheet.
Thx,
Alex