Access 2003. I've set the report orientation to landscape using VB. The report that pops up is in Portrait view, but page orientation is correctly set to Landscape and it prints in landscape orientation. The really odd thing is that if I step through the code using F8, it will open in PrintPreview Mode as Landscape.
The relevant code is as follows.
This comes at the very end, right before END SUB. Prior to this I collect user's inputs from list boxes, generate a SQL string, and pass it to the report. The report is then opened in design view, all the text boxes and labels are arranged, and then this code comes.
Any thoughts on how to have it open directly into Landscape Orientation?
The relevant code is as follows.
Code:
rpt.Section(acDetail).Visible = False
With rpt
.Printer.Orientation = acPRORLandscape
End With
DoCmd.OpenReport rpt.Name, acViewPreview
'reset all objects
rs.Close
Set rs = Nothing
Set rpt = Nothing
Set db = Nothing
Any thoughts on how to have it open directly into Landscape Orientation?
Comment