Report and report preview are not properly displayed

djemy1975

Board Regular
Joined
Jan 18, 2016
Messages
51
I have a form in access with two buttons .The first is to display a print preview and the second is to display report view ,but they are displayed either in small form or cut off as the attached images show:

Please help me overcome this problem.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Probably a dumb question but have you tried dragging the corners of the window, double clicking the title bar, or hit the maximize button? In other words, resizing the report window.
 
Upvote 0
https://drive.google.com/drive/folders/0B2if4EvJUxEeYmVTdTNodlZYdzA?usp=sharing

Sorry ,I have limitted knowledge of sharing links.Checks now if the screenshots are available for you.

Thanks for your interest in my subject.

Great job!. I can see the images.

What is happening is the report is oping in a window that is not maximized.

1) use the mouse: click the windows maximize icon on the title bar. This is the icon with a square to the left of red X (close) in the upper right corner of the window.

maximize_window.png


2) you might also consider adding this to the on open event of the report.


Code:
Private Sub Report_Open(Cancel As Integer)

    ' maximize the report window
    DoCmd.Maximize

End Sub
 
Upvote 0
I have added the piece of code but the report has taken all the window.Is it possible to display it in a normal window on the form?
 
Upvote 0
Thank you so much I was able to solve this issue by playing on the code of your post as follows:

Code:
DoCmd.OpenReport "tblInvHeader", acPreview, "", "", acNormal
 DoCmd.MoveSize 12000, 1000, , 13000

I will attach a screenshot soon
 
Last edited:
Upvote 0
Thank you so much I was able to solve this issue by playing on the code of your post as follows:

Code:
DoCmd.OpenReport "tblInvHeader", acPreview, "", "", acNormal
 DoCmd.MoveSize 12000, 1000, , 13000

I will attach a screenshot soon

You're welcome. Glad we could assist.

Thanks or the update and paying it forward with your solution.
 
Upvote 0

Forum statistics

Threads
1,221,707
Messages
6,161,416
Members
451,705
Latest member
Priti_190

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top