This article provides sample code explaining how to use the Javascript API via C++ to calculate Page Setup scaling factor using the Fit to n page(s) wide by m tall option of an Excel worksheet programmatically....Setup Scaling Factor with JavaScript via C++ Contents [ Hide ]...script > < script type = "text/javascript" > const { Workbook , SaveFormat...