|
-
Jan 16th, 2003, 03:05 PM
#1
Thread Starter
Junior Member
Using Excel in VB .NET
Well most of the excel code for excel 9.0 object library works in .NET correctly.....but I have one question.
When I create a excel application object, how do I get VB . NET to change the orientation of the worksheet to landscape instead of portrait?
I used the following code in VB 6.0 but it doesn't work in .NET.
oExcelApp.ActiveSheet.PageSetup.Orientation = xlPortrait
It doesn't recognize the xlportrait part of the equation.
Any help would be appreciated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|