Where to find REPORTS ORIENTATION (landscape/portrait)?


G

Guest

Hi!

I'm want to create a function in Visual Basic .NET (framework 2.0) that can
check if report has landscape orientation or portrait. So far I only know how
to get hold of the report. Some thing like this works fine:

Dim report As Access.Report
If appAccess.CurrentProject.AllReports(x).IsLoaded = False
Then

appAccess.DoCmd.OpenReport(appAccess.CurrentProject.AllReports(x).Name,
Access.AcView.acViewDesign)
End If
report =
appAccess.Reports(appAccess.CurrentProject.AllReports(x).Name)

Question: is there any propertie that returns orientation.

P.S. There is a propertie named orientation, but it retorns either "left to
right", "right to left" which is not what i want.
 
Ad

Advertisements

G

Guest

Open the report in design view. Click on menu FILE - Page Setup - Page and
see if portrait or landscape is selected.
 
Ad

Advertisements

G

Guest

That's very kind of you to point out this way, but I need to create a
function (a piece of code) that would return this value.

Unless you know how to create a function that does then following:
Open the report in design view. Click on menu FILE - Page Setup - Page and
see if portrait or landscape is selected.
it doesnt work out for me
 

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