|
-
Oct 11th, 2008, 05:14 AM
#1
Thread Starter
Hyperactive Member
how can i print access report
hi all.
How can i print access report using vb code without opening access database window. i need the vb code to show the access report in the preview mode. please give me the respective code..
saj
-
Oct 11th, 2008, 06:27 PM
#2
Re: how can i print access report
Never did, but try referencing the Microsoft Access Object Library in your VB project, declare the access object and
Code:
objAccess.DoCmd.OpenReport rptName
Last edited by jggtz; Oct 11th, 2008 at 06:31 PM.
-
Oct 15th, 2008, 01:32 AM
#3
Thread Starter
Hyperactive Member
Re: how can i print access report
Thank u for the reply,,i can able to take print out.
but my doubt,
1. Is it possible to print access report without opening the ms access database (client dont want see the access database to be open)
2. How can i print the system date in the format Month day year ( eg: October 15, 2008) in access report.
saj
-
Oct 16th, 2008, 08:24 AM
#4
Re: Access + VB code
 Originally Posted by sajankk
1. Is it possible to print access report without opening the ms access database (client dont want see the access database to be open) using vb code
No. In order to do anything with an Access report, the database has to be opened.
-
Oct 16th, 2008, 11:18 AM
#5
Re: Access + VB code
2. Yes, open your report and add a label to it. Then in the controlsource property format the Date() function as you desire.
1. You do have to open the Access database and the system does need Access installed. You can do it hidden too so the user doesnt see.
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 
-
Oct 17th, 2008, 12:53 PM
#6
Re: how can i print access report
Duplicate Threads Merged
One topic, one thread, one section please.
Thank you.
-
Oct 18th, 2008, 04:04 AM
#7
Thread Starter
Hyperactive Member
Re: Access + VB code
 Originally Posted by RobDog888
2. Yes, open your report and add a label to it. Then in the controlsource property format the Date() function as you desire.
1. You do have to open the Access database and the system does need Access installed. You can do it hidden too so the user doesnt see.
thank u rob...
how can i hide and open database through vb code. can u explain please
saj
-
Oct 19th, 2008, 02:09 AM
#8
Thread Starter
Hyperactive Member
Re: how can i print access report
can anybody will help me in this matter. otherwise i have to go for crystal report.
-
Oct 19th, 2008, 12:39 PM
#9
Re: how can i print access report
Last edited by jggtz; Oct 19th, 2008 at 12:45 PM.
-
Oct 21st, 2008, 02:56 AM
#10
Thread Starter
Hyperactive Member
Re: how can i print access report
 Originally Posted by jggtz
Access Object
what u mean by access object
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
|