Scaling?

rbb

Member
Joined
Jul 19, 2004
Messages
21
I am using interop to create an Excel spreadsheet. How can I set my page setup to select the "Fit To..." option? I am using the following code to set the page count width & height, but the radio button is not selected.

Code:
FYI - oSheet is an Excel.WorkSheet
oSheet.PageSetup.FitToPagesTall = 100
oSheet.PageSetup.FitToPagesWide = 1
oSheet.PageSetup.Orientation = Excel.XlPageOrientation.xlLandscape
Thanks,

Rob
 
Back
Top