473,394 Members | 1,944 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

determining a report's page orientation with VBA

tom
Hi All,

Using VBA, I would like to be able to examine a report in design
mode and determine its page orientation (landscape or portrait).

I do not want to change the orientation.

I'm fine with getting to the point of having an Access.Report
variable pointing to the report... just don't know how to get it to
tell me its page setup information.

Any ideas?

Thanks,
-Tom
Nov 13 '05 #1
2 3992
On 4 Jun 2004 17:40:27 -0700, tom wrote:
Hi All,

Using VBA, I would like to be able to examine a report in design
mode and determine its page orientation (landscape or portrait).

I do not want to change the orientation.

I'm fine with getting to the point of having an Access.Report
variable pointing to the report... just don't know how to get it to
tell me its page setup information.

Any ideas?

Thanks,
-Tom


Look up the PrtDevMode property in VBA help.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 13 '05 #2
tom
Fred,

Thanks for the suggestion. It seems right on, however I can't talk
Access into making it go... the "switchOrient" example on the help
page doesn't work, as the "intOrientation" field in the structure is
always 0. Hmmm....

-Tom

fredg <fg******@example.invalid> wrote in message news:<am****************************@40tude.net>.. .
On 4 Jun 2004 17:40:27 -0700, tom wrote:
Hi All,

Using VBA, I would like to be able to examine a report in design
mode and determine its page orientation (landscape or portrait).

I do not want to change the orientation.

I'm fine with getting to the point of having an Access.Report
variable pointing to the report... just don't know how to get it to
tell me its page setup information.

Any ideas?

Thanks,
-Tom


Look up the PrtDevMode property in VBA help.

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Nhmiller | last post by:
Access seems to always generate a second page, which is blank, to my one page report. How do I delete the second page? Thanks. Neil Cat Paintings At Carol Wilson Gallery...
5
by: bcanavan | last post by:
When I export xml(and xls) from Access 2003 the result is a complete report in a single page. I would like to get the entire report in a single page (one trip to the server) for printing and...
12
by: Connor T | last post by:
Hi, I have a crystal report embedded in a viewer. How / Where can I set a property to make it default to landscape orientation? Rgds, Dan
0
by: Big George | last post by:
Hello Gurus, I'm developing with VS2003, ASP.NET with Crystal Report for VS.NET, and I need to change the paper orientation of a Crystal Report to Horizontal... How to do that? I tried to...
0
by: DavidGeorge | last post by:
I have an application with a number of reports, some in Landscape, some in Portrait orientation. I need to be able to select each of these reports separately at times. However, at the end of...
0
by: brett | last post by:
Hi, I need to build a pdf report by using Crystal report which including several subreport. The problem is that the primary page orientation is portrait and some subreports' orientation is...
4
by: JHite | last post by:
I'm using AC2003. Sequence of events: a. Tool -> Relationships I show my tables & relationships and arrange them to fit landscape mode. b. File ->Print Relationships This generates a...
2
by: J360 | last post by:
I'm using VB in Access 2003 to generate a dynamic report. I first open the report in design view to set all the grouping levels etc. I then use with rpt .printer.orientation =...
4
by: J360 | last post by:
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.