Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

 

'FYI - oSheet is an Excel.WorkSheet
oSheet.PageSetup.FitToPagesTall = 100
oSheet.PageSetup.FitToPagesWide = 1
oSheet.PageSetup.Orientation = Excel.XlPageOrientation.xlLandscape

Thanks,

 

Rob

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...