Getting Orientation of report

D

Don

How do you get the orientation of a report(Portrait or Landscape) though
code? I tried the code below but it always gives me zero.

Thanks

Don

Dim rpt As Access.Report
Dim iOrientation = rpt.Orientation

Set rpt = Reports("Report1")
iOrientation = rpt.Orientation
 
D

Don

I had wrote down the incorrect syntax. This is how it should read.

Dim rpt As Access.Report
Dim iOrientation as integer

Set rpt = Reports("Report1")
iOrientation = rpt.Orientation
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top