I created some reports and saved it in "Landscape" format.
These reports are opened by the press of a button.
The problem is that every time I open the reports they open in "Portrait" format !
1. Open your report in Design View
2. open the properties of your report (properties button on toolbar Or View - Properties from the menu)
3. click on the Event tab of your properties
4. Click into the On Open event
5. click on the ellipsis button
6. Select Code Builder from the Choose Builder list
7. Paste the line of code that PHV gave you
Your code should look like this...
Private Sub Report_Open(Cancel As Integer)
Me.Printer.Orientation = acPRORLandscape
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.