Results 1 to 5 of 5
  1. #1
    data808 is offline Noob
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    727

    Print Preview in Report


    I am having issues with the print preview button I made. So when I click the button it closes the report I am in and opens the print preview window with no other options to print or anything. If I close the print preview window it does not reopen the report. Also how can I size the print preview window to maximize and possibly have an option to print if I like what I am previewing. Also if I don't like it, why can't I have page setup options and things like that? Can someone help on how to setup a fully functioning print preview?

  2. #2
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    614
    So when I click the button it closes the report I am in and opens the print preview window
    You are opening report from a form or report ??
    Opening a report in "acViewPreview" should open report in print preview.
    Code:
    DoCmd.OpenReport "ReportName",acViewPreview

  3. #3
    data808 is offline Noob
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    727
    Yeah I am opening a report from a form. The report is linked to a query. So I click a button on a form which opens the report that's linked to a query. The thing is, will I have a features to manipulate the report to fit on a letter or legal, portrait or landscape, etc... These options are usually available when in print preview. Also I don't like how print preview opens up. The window does not maximize and it also closes my form when print preview opens. What if I want to close it or cancel and go back to my form? I would like the form to stay open so when I close the print preview window, my form is there waiting for me to be able to navigate around to other forms and what not. How to get control the print preview window to do what I want it to?

  4. #4
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    614
    This applies for Access 2010
    When in report's design view, click on page setup to manipulate page size, margins etc. check the pop up settings for your report as well as form. Why should the form close when you open the report ? What code do you use to open the report and how do you close it ? Can you post the code behind the button which opens the report.

  5. #5
    data808 is offline Noob
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    727
    I believe its a macro behind the button to just open print preview. I think I used the run command action and selected print preview. Thats all that is tied to the button so I'm not sure why the form closes when the print preview window opens.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 21
    Last Post: 08-06-2013, 01:02 PM
  2. convert report view to print preview
    By DarrenUD in forum Reports
    Replies: 3
    Last Post: 03-19-2013, 12:21 AM
  3. Replies: 6
    Last Post: 02-02-2013, 12:44 AM
  4. Replies: 1
    Last Post: 04-21-2011, 01:58 PM
  5. Can't see sub report in print preview
    By LoggyDoggy in forum Access
    Replies: 1
    Last Post: 04-20-2010, 05:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums