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....script > </ html > How to Set Print Titles with JavaScript via C++...