Groups | Blog | Home
all groups > dotnet interop > february 2004 >

dotnet interop : Page Setup Help for Excel


pbwedzNOTME NO[at]SPAM yahoo.com
2/26/2004 8:04:13 AM
Trying to access the Excel's page setup for a Excel file I'm creating
via Office.Interop. I almost got it, I need help with two little
things.

In PageSetup for the Sheet:

1) How do I set the scaling option buttons? I need to switch the
option to 'Fit to # wide by # tall.

2) I want to set that option above to 1 Wide by 'blank' tall. How do
I 'blank' out the tall value? Using 0, -1 or nothing throws an error
in PageSetup.FitToPagesTall.

Thanks,

Josh Blair
2/27/2004 5:00:15 PM
Try the info on this site:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_vsto2003_ta/html/ExcelObj.asp

Hope this helps,

Josh

[quoted text, click to view]

pbwedzNOTME NO[at]SPAM yahoo.com
3/1/2004 6:43:01 AM
[quoted text, click to view]

Thanks, but that's no help, I've read that.

It's almost like Microsoft only let's you get at part of the page
setup. You would think that if you are going to bother to allow
people access some of those settings, you wouldn't do just half of it.

AddThis Social Bookmark Button