I added this code after I create my sheet. Where is it most efficient to perform this formatting?
Thank you
Code:
chSheet1:PageSetup:LeftMargin = chexcel:Application:InchesToPoints(.25).
chSheet1:PageSetup:RightMargin = chexcel:application:InchesToPoints(.25).
chSheet1:PageSetup:TopMargin = chexcel:Application:InchesToPoints(0.5).
chSheet1:PageSetup:BottomMargin = chexcel:Application:InchesToPoints(0.5).
chSheet1:PageSetup:HeaderMargin = chexcel:Application:InchesToPoints(0.0).
chSheet1:PageSetup:FooterMargin = chexcel:Application:InchesToPoints(0.0).
chSheet1:PageSetup:Zoom = FALSE.
chSheet1:PageSetup:FitToPagesWide = 1.
chSheet1:PageSetup:FitToPagesTall = 1. /* was FALSE */
chSheet1:PageSetup:ORIENTATION = 2. /* landscape*/
chSheet1:PageSetup:PrintTitleRows = "$1:$1".
Thank you