Results 1 to 6 of 6
  1. #1
    DubCap01 is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2014
    Location
    Dubbo, Australia
    Posts
    104

    Prevent Print Preview Ribbon activating?

    Hi all,

    I know it's primarily a report question, but so many more eyes here. I am trying to disable the print preview ribbon from dropping down when I preview any report in A2010.

    I have tried this calling this function option in 'Current', 'Activate', and 'Open', and whilst it works perfectly for forms, it just won't prevent the Preview Ribbon for reports!
    option:

    If Not CommandBars.GetPressedMso("MinimizeRibbon") Then
    CommandBars.ExecuteMso "MinimizeRibbon"
    End If

    It is important that the report opens into Print Preview mode, as some users may wish to save a tree frog by not printing a large report...


    Any clues anyone?

    cheers
    Pete

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    You want to eliminate any print option? Are you going to also disable the right click shortcut menu?

    I've never used CommandBars method. I do have code that customizes the ribbon and reference custom ribbon in report RibbonName property. I also disable shortcut menu in database options.

    Are reports set to default open to Print Preview? And also use PrintPreview parameter in DoCmd.OpenReport method.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    DubCap01 is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2014
    Location
    Dubbo, Australia
    Posts
    104
    Hi June7 - sorry for not responding sooner, been away - illness.

    It's a MSAccess2013 thing... It works exactly as planned in MS Access 2010! In A2010, the Menu bar minimizes; users can still print via right-click, or by clicking File (and then the Menu Bar reappears) - Print, or via the Quick Print option on the Quick Access Toolbar Ribbon.

    BUT in A2013 the Full Menu Bar appears regardless!

    cheers
    Pete

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I don't know Access 2013 well enough - yet, but perhaps will have to do ribbon customization.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    DubCap01 is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2014
    Location
    Dubbo, Australia
    Posts
    104
    Hi June,
    Found the easy way to hide the Print Preview Ribbon - and it has nothing to do with the report design or anything!
    I went into File - Options - Customize Ribbons and clicked off 'Print Preview'
    Job fixed! Users still have the right-click 'Print' and File - Print options should they wish to do so...

    cheers
    Pete

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    That setting holds for any database you open. It is not database specific - it is an Access application setting.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 5
    Last Post: 07-29-2014, 01:05 PM
  2. Replies: 6
    Last Post: 03-01-2014, 07:07 AM
  3. Print & Print Preview Differ
    By IDH in forum Reports
    Replies: 3
    Last Post: 07-25-2012, 09:50 AM
  4. Print Preview different from Print Hardcopy
    By peterc in forum Reports
    Replies: 4
    Last Post: 10-27-2009, 05:35 AM
  5. Error when trying to print or print preview
    By TriAdX in forum Reports
    Replies: 8
    Last Post: 08-25-2009, 08:20 AM

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