Results 1 to 20 of 20

Thread: Access Reports

  1. #1

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    Access Reports

    Hey,

    I have a report in Access 2003. Everytime I change the page orientation to landscape and save the report it changes back to portrait next time I open the report. Does anyone else experienced this?

    Thanks,
    Don't anthropomorphize computers -- they hate it

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Access Reports

    Quote Originally Posted by vbgladiator
    Hey,

    I have a report in Access 2003. Everytime I change the page orientation to landscape and save the report it changes back to portrait next time I open the report. Does anyone else experienced this?

    Thanks,
    Ohhhhh yes I have, only I experienced it in Access 2000, and I see it still hasn't been fixed

    The one and only way I ever resolved this problem was to delete the report, and recreate it as Landscape. It appears that the report will default back to the way you created it, and there never was anything that I found that fixed it.

  3. #3

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    Re: Access Reports

    Also,
    Access 2003 puts this annoying prompt asking user if they want to enable macros if your file contains code.
    Is there any way to prevent that message box from appearing?

    Thanks,
    Don't anthropomorphize computers -- they hate it

  4. #4
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Access Reports

    yes... now.. trying to remember how to fix it is another story.

    can u set it in code? (On report open?)

    but I think u have to open rpt in design view.. switch to landscape.. view report.. then save it?? it was something odd...
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  5. #5
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Access Reports

    prompt.. hmm.. I know in Excel there is a security setting.. look for it and select allow macros... maybe?
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  6. #6
    Hyperactive Member
    Join Date
    Feb 2003
    Location
    Grenada
    Posts
    346

    Re: Access Reports

    The Macro messagebox is a way of warning users that there could be harmful code within the database... so I doubt it would be possible to put extra code within the database to hide the detection of code in the database...
    If my post has been helpful, then please rate it accordingly...
    If it has solved your question(s), then don't forget to mark the thread as "[Resolved]"... thank you.

  7. #7

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    Re: Access Reports

    well, if you're writing an application for a client, you don't want them to be looking at it every single time they open it.
    I was hoping there is some setting to disable it.
    Don't anthropomorphize computers -- they hate it

  8. #8

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    Re: Access Reports

    never mind, it's under tools-macros-security.

    thanks,
    Don't anthropomorphize computers -- they hate it

  9. #9
    Hyperactive Member
    Join Date
    Feb 2003
    Location
    Grenada
    Posts
    346

    Re: Access Reports

    @ VbGladiator...

    That solution only disables Macros on YOUR pc... it wouldn't affect the clients'. They would still see the messagebox...
    If my post has been helpful, then please rate it accordingly...
    If it has solved your question(s), then don't forget to mark the thread as "[Resolved]"... thank you.

  10. #10
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Access Reports

    Quote Originally Posted by Static
    yes... now.. trying to remember how to fix it is another story.

    can u set it in code? (On report open?)

    but I think u have to open rpt in design view.. switch to landscape.. view report.. then save it?? it was something odd...
    Yes, this is the way. When the report is in design view and you set the orientation of the print and save the report it will remain as part of the report and not a temporary printer setting.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  11. #11

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    Re: Access Reports

    Protocol, that's fine. I just wanted to know if there's a way. I can tell them to disable it.
    Don't anthropomorphize computers -- they hate it

  12. #12

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    Re: Access Reports

    Yes, this is the way. When the report is in design view and you set the orientation of the print and save the report it will remain as part of the report and not a temporary printer setting.
    I tried doing that and it's the same problem. as soon as I close the report and re-open it, it's set back to portrait. Damn....
    Don't anthropomorphize computers -- they hate it

  13. #13
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Access Reports

    Quote Originally Posted by vbgladiator
    I tried doing that and it's the same problem. as soon as I close the report and re-open it, it's set back to portrait. Damn....
    Did you try recreating it and setting it a landscape at that point?

  14. #14

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    Re: Access Reports

    no, I was trying to avoid having to do that. I guess I'll try that next.
    Don't anthropomorphize computers -- they hate it

  15. #15
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Access Reports

    Quote Originally Posted by vbgladiator
    no, I was trying to avoid having to do that. I guess I'll try that next.
    It has been a while since I've dealt with Access reports, but if my failing memory serves me correctly, that was the only way that I could solve the problem.

  16. #16
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Access Reports

    You can also use code to set the orientation for the report printing upon its opening. That will definately solve the issue but will require them to enable macros too.
    VB Code:
    1. Option Compare Database
    2.  
    3. Private Sub Report_Open(Cancel As Integer)
    4.     Me.Printer.Orientation = acPRORLandscape
    5. End Sub
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  17. #17
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Access Reports

    Quote Originally Posted by RobDog888
    You can also use code to set the orientation for the report printing upon its opening. That will definately solve the issue but will require them to enable macros too.
    VB Code:
    1. Option Compare Database
    2.  
    3. Private Sub Report_Open(Cancel As Integer)
    4.     Me.Printer.Orientation = acPRORLandscape
    5. End Sub
    I believe he has already tried that with very mixed results. I also, back in my Access reports days, tried that, it sometimes it worked and sometimes it didn't. The one and only way I ever got landscape to print consistently was to set landscape as default at the time I created the report. Programmatically changing it was hit and miss at best.

  18. #18
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Access Reports

    I have tried it before I posted and it worked fine for me.

    There is another way I believe. I have a db around my system somewhere that has some cool API methods for doing this. Tomorrow I will look for it.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  19. #19
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Access Reports

    Quote Originally Posted by RobDog888
    I have tried it before I posted and it worked fine for me.

    There is another way I believe. I have a db around my system somewhere that has some cool API methods for doing this. Tomorrow I will look for it.
    If they do work, please post them (and God knows I could have used you 5 years ago when I was going through this )

  20. #20
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Access Reports

    I will. I remember that it used a few APIs and the printer dev stuff.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width