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.