|
-
Dec 20th, 2005, 11:27 AM
#1
Thread Starter
Frenzied Member
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
-
Dec 20th, 2005, 11:38 AM
#2
Re: Access Reports
 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.
-
Dec 20th, 2005, 11:39 AM
#3
Thread Starter
Frenzied Member
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
-
Dec 20th, 2005, 11:40 AM
#4
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"
-
Dec 20th, 2005, 11:43 AM
#5
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"
-
Dec 20th, 2005, 11:45 AM
#6
Hyperactive Member
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.
-
Dec 20th, 2005, 11:50 AM
#7
Thread Starter
Frenzied Member
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
-
Dec 20th, 2005, 11:54 AM
#8
Thread Starter
Frenzied Member
Re: Access Reports
never mind, it's under tools-macros-security.
thanks,
Don't anthropomorphize computers -- they hate it
-
Dec 20th, 2005, 11:57 AM
#9
Hyperactive Member
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.
-
Dec 20th, 2005, 01:33 PM
#10
Re: Access Reports
 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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Dec 20th, 2005, 01:48 PM
#11
Thread Starter
Frenzied Member
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
-
Dec 20th, 2005, 01:53 PM
#12
Thread Starter
Frenzied Member
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
-
Dec 20th, 2005, 02:33 PM
#13
Re: Access Reports
 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?
-
Dec 20th, 2005, 02:35 PM
#14
Thread Starter
Frenzied Member
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
-
Dec 20th, 2005, 02:37 PM
#15
Re: Access Reports
 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.
-
Dec 21st, 2005, 06:11 AM
#16
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:
Option Compare Database
Private Sub Report_Open(Cancel As Integer)
Me.Printer.Orientation = acPRORLandscape
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Dec 21st, 2005, 07:15 AM
#17
Re: Access Reports
 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:
Option Compare Database
Private Sub Report_Open(Cancel As Integer)
Me.Printer.Orientation = acPRORLandscape
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.
-
Dec 21st, 2005, 07:30 AM
#18
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Dec 21st, 2005, 07:33 AM
#19
Re: Access Reports
 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 )
-
Dec 21st, 2005, 07:34 AM
#20
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|