Free Lessons
Fast Tips
Topic Index
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
Home > Forums > Access
Back to Access Forum    Comments List
Resizing report preview window Upload Images   Link   Email  
Robert Freeman         
2 months ago
Hi. I have a report print preview that opens from a button on a form. I have successfully resized the preview but I now need to set the window width so that the report can be viewed on screen without horizontal scrolling. I'm guessing Richard may have covered this somewhere in one of his videos - would someone please be kind enough to point me in the right direction. Many thanks.
Sami Shamma              
2 months ago

Hi Robert

Have you checked that the zoom property is set to "Fit"?
Robert Freeman         
2 months ago
Hi Sami. Here is the code I'm using to call the report:
DoCmd.OpenReport "CommitteeMemberR", acViewPreview, , , acWindowNormal
    DoCmd.RunCommand acCmdZoom100

The report opens fine but is so small as to be unreadable on a laptop so I used the zoom control to enlarge the content. The problem is that the report has to then be scrolled to see the report. The report size is a single A4 page.

What I am trying to achieve is a window size that allows the report to be viewed at full width.
Richard Rost             
2 months ago
You can either use MoveSize to move it where you want and to what size specifications, or maybe even use Maximize to fill the whole app window (which I don't care for). This has actually been on my TechHelp list for a while. Video is coming up, but in the mean time, here's a sample...

    DoCmd.OpenReport "OrderInvoiceR", acViewPreview
    DoCmd.MoveSize 100, 100, 15000, 7000
    DoCmd.RunCommand acCmdZoom100

Of course, you'll need to play with the coordinates/sizes to your liking.
Richard Rost             
2 months ago
And Sami... this is another one for the list. Reports don't always reopen where you saved them. Super annoying.
Sami Shamma              
2 months ago
Richard, it is done.
Kevin Yip       
2 months ago
You can set the report's Pop Up property to Yes, so the report appears in its own window that you can resize freely by dragging its corners.
Richard Rost             
2 months ago
Yeah, but it doesn't remember those settings when you Save/Close/Open it, like Forms do.
Robert Freeman         
56 days ago
You guys are awesome! Thank you so much - Richard's solution worked like dream.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.


The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.

Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
My Account
My Courses
Lost Password
Student Databases
Change Email
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Customer Support
Web Site Tour
Consulting Services
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Video Tutorials
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Terms of Sale
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

Copyright 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/27/2024 3:49:51 AM. PLT: 0s