This article provides sample code explaining how to use the C++ API or library to calculate Page Setup scaling factor using Fit to n page(s) wide by m tall option of Excel Worksheet programmatically....// Access first worksheet Worksheet worksheet = workbook . GetWorksheets...some data in these cells worksheet . GetCells (). Get ( u "A4"...