This article provides sample code to set page options of Excel worksheets programmatically using JavaScript via C++. Set Page Orientation, Scaling Factor, FitToPages Options, Paper Size, Print Quality, First Page Number.... innerHTML = '<p style="color: green;">Orientation set to...'result' ). innerHTML = '<p style="color: green;">Scaling factor set...