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.
Thanks,
Rob
Code:
FYI - oSheet is an Excel.WorkSheet
oSheet.PageSetup.FitToPagesTall = 100
oSheet.PageSetup.FitToPagesWide = 1
oSheet.PageSetup.Orientation = Excel.XlPageOrientation.xlLandscape
Rob