473,326 Members | 2,111 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,326 software developers and data experts.

How to Set View Percentage in a Report (Zoom)

NeoPa
32,556 Expert Mod 16PB
I'm currently using Access 2003 on an XP machine.

When my report opens, the size of the report always seems to be such that it fits a whole page in the window. The View Percentage in the Print Preview toolbar seems to go to a value "Fit" which takes the currently defined size of my window, and fits in a whole page of A4 within that. I don't know if I have used the correct term for the setting on the toolbar, but I know the toolbar at least is called Print Preview.

I'd prefer to see the report within the window showing at full size (a setting of 100%) as I can't even read what it says when it compresses the whole page into the window. Maximising makes it only slightly larger, and is not a viable solution, but if anyone knows how to set the View Percentage in code then that would be very interesting.
Dec 22 '10 #1
1 4840
NeoPa
32,556 Expert Mod 16PB
I hate it when that happens. I did more searching and discovered it was called Zoom (not View Percentage). With that knowledge I found some helpful articles on the subject.

It seems there are predefined Zoom constants that can be used with DoCmd.RunCommand. For 100%, as specified in the question, simply use :
Expand|Select|Wrap|Line Numbers
  1. DoCmd.RunCommand accmdZoom100
Did I say simply? Not exactly. It fails if run in the Report_Open() or Report_Activate() event procedures apparently :-( You can run it after the call to open the report though, if you want the logic to be determined outside of the report object itself.

An alternative approach is to use an undocumented object (ZoomControl) of the report itself (Thanks due to Radu Lascae for his code illustration).

As yet, I have found no workable way to control this in the code of the report itself. Both approaches seem to require the code to be run externally after the report has been opened. Not very satisfactory from my current perspective, but I expect there's a reason for that somewhere.
Dec 22 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Dave | last post by:
Is it possible to view an Access report, or is there a Viewer that I can use, on a form?
0
by: Dean Sabella | last post by:
Hi, I was trying to run a crystal report in the .net sample application given at: http://support.crystaldecisions.com/communityCS/FilesAndUpdates/ cppnet_win_subreport_basic.exe.asp (I've...
1
by: Rod | last post by:
We've implemented forms authentication with Active Directory. We're slowly working on converting our Crystal Reports' reports from a VB6 application into Crystal Reports for .NET in our ASP.NET...
1
by: Yummy | last post by:
what should I do for installation of a VB.Net program in which there are some reports generated by crystal report 9 ? Need to register any dll file(e.g. crviewer9.dll) for viewing crystal reports...
0
by: henrycortezwu | last post by:
Hi all, How do you load the current or active view of a crystalreportviewer to a reportdocument variable? I'm trying to do this so that I can export the most current or active view. Ex: if a...
5
by: rgsw | last post by:
Hi - When people view a report in access they alway make report bigger for easier viewing. When closing report sometimes they click out of access instead of making report smaller and clicking out...
1
by: Terren | last post by:
Hi I am trying to view a Crystal report (8.5) using the Crystalreports viewer for C#.net. I have a form and the view control on it. I am using the following code to try load the report as the...
2
by: Bob | last post by:
I've searched this group and have not found any posts since 2001, so I'm hoping that now there may be a better way. I have a need to generate a report that looks like a outlook monthly calendar...
5
by: kchang | last post by:
I am trying to view my reports based on a linked table database. However both the reports and the queries they're based on give me a "odbc--call failed" error. When I click on help it cites error...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.