I have a need to open a common dialog box (the printer dialog) via code from Access, retrieve the details and then use those details for my own purposes.
I could create a form with the required fields, but filling the printer list is a bit messy. In plain VB the common dialog boxes are easy to pop up. How do I do it from within Access?
Thanks for your help.
Peter
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Common Dialog box (Access 2000)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Common Dialog box (Access 2000)
- This topic has 7 replies, 3 voices, and was last updated 22 years, 11 months ago.
AuthorTopicWSpeterl
AskWoody LoungerJune 4, 2002 at 12:46 am #371793Viewing 0 reply threadsAuthorReplies-
WScharlotte
AskWoody LoungerJune 4, 2002 at 4:31 am #592125Welcome to the differences between Access and VB. One is that the common dialogs are NOT as easy to work with. The usual way to get printer information from Access is to use PrtDevNames, but that relates to the devices available for printing reports, etc. from Access. You can always use the WinAPI to give you a handle into the PrintDev library. What are you trying to popup the print dialog for?
-
WSpeterl
AskWoody LoungerJune 5, 2002 at 1:53 am #592315I suspected that it was going to be difficult. Why oh why does MS do this to us? A bit of consistency would eb nice (but I guess things have come a long way!).
I just wanted an easy way to get the users to choose which printer and how many copies. I’ll have to create my own form for it.
Thanks again for your help.
Peter -
WBell
AskWoody_MVP -
WSpeterl
AskWoody LoungerJune 5, 2002 at 4:56 am #592347Well, yes it does. But I don’t want to print any Access object, I want to print some Adobe Acrobat PDFs from within Access. (It’s along story, but basically I’m using an Access database as a repository and index to a pile of documents.) So I need to print those docs out from within Access. I’ve found the right cmd line switches to get it to work, from the VBA forum on Woodys. I’ll allow the user to choose the printer and number of copies, then Access will be shelling to Acrobat to print the documents.
-
WScharlotte
AskWoody Lounger -
WSpeterl
AskWoody LoungerJune 5, 2002 at 10:10 pm #592540Good question. I’m not sure if you can. I couldn’t find any doc on Adobe’s website about it, except for the information below (Support Knowledgebase Document 320325)
————————————————————————-
ActiveX Control in Acrobat 4.0 and Later Is Not Full-Featured ControlAdobe Acrobat 4.0 and later includes an ActiveX control for Windows. This control enables Microsoft Internet Explorer to display Adobe PDF files in the browser window using an Acrobat viewer, such as Acrobat or Acrobat Reader. This ActiveX control is for use only with Internet Explorer; it is not a full-featured, robust ActiveX control that enables other applications to display PDF files.
————————————————————————-Maybe there is some undoc’d features there?
In the future, I can see I’ll need to use Access to drive printing of other doc types as well, that may not have a control. So cmd line options seemed more appropriate.
I was hoping for a command on a printer object that could just take a filename, figure out what the association was from that files extension (from the registry – e.g. PDF uses Acrobat) and send it to the printer. Certainly Windows can do that – just drag and drop an object onto a printer shortcut. But I want to do it via VBA. Something like this would have been nice:Dim myPrinter As Printer myPrinter.Name = "W2Plain Paper" myPrinter.PrintObjectName = "stuff.pdf" myPrinter.Print
Anyone from MS reading this?
-
WScharlotte
AskWoody LoungerJune 6, 2002 at 3:30 am #592582Take a look at this thread in VB/VBA/.Net where something similar was being attempted by VB.
MS people reading it won’t help, because they don’t own Acrobat … yet!
The ocx is installed if you install Acrobat reader on a machine too.
-
-
-
-
Viewing 0 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Trump signs Take It Down Act
by
Alex5723
5 hours ago -
Do you have a maintenance window?
by
Susan Bradley
5 hours, 26 minutes ago -
Freshly discovered bug in OpenPGP.js undermines whole point of encrypted comms
by
Nibbled To Death By Ducks
6 hours, 34 minutes ago -
Success Knows No End in the World of Online Slots (Awaiting moderation)
by
isobelhartmann1
6 hours, 43 minutes ago -
Cox Communications and Charter Communications to merge
by
not so anon
8 hours, 20 minutes ago -
Help with WD usb driver on Windows 11
by
Tex265
13 hours, 29 minutes ago -
hibernate activation
by
e_belmont
17 hours, 15 minutes ago -
Red Hat Enterprise Linux 10 with AI assistant
by
Alex5723
21 hours, 3 minutes ago -
Windows 11 Insider Preview build 26200.5603 released to DEV
by
joep517
1 day ago -
Windows 11 Insider Preview build 26120.4151 (24H2) released to BETA
by
joep517
1 day ago -
Fixing Windows 24H2 failed KB5058411 install
by
Alex5723
41 minutes ago -
Out of band for Windows 10
by
Susan Bradley
1 day, 4 hours ago -
Giving UniGetUi a test run.
by
RetiredGeek
1 day, 11 hours ago -
Windows 11 Insider Preview Build 26100.4188 (24H2) released to Release Preview
by
joep517
1 day, 19 hours ago -
Microsoft is now putting quantum encryption in Windows builds
by
Alex5723
5 hours, 29 minutes ago -
Auto Time Zone Adjustment
by
wadeer
1 day, 23 hours ago -
To download Win 11 Pro 23H2 ISO.
by
Eddieloh
1 day, 21 hours ago -
Manage your browsing experience with Edge
by
Mary Branscombe
1 day, 2 hours ago -
Fewer vulnerabilities, larger updates
by
Susan Bradley
14 hours, 37 minutes ago -
Hobbies — There’s free software for that!
by
Deanna McElveen
21 hours, 1 minute ago -
Apps included with macOS
by
Will Fastie
18 hours, 53 minutes ago -
Xfinity home internet
by
MrJimPhelps
15 hours, 40 minutes ago -
Convert PowerPoint presentation to Impress
by
RetiredGeek
1 day, 16 hours ago -
Debian 12.11 released
by
Alex5723
2 days, 21 hours ago -
Microsoft: Troubleshoot problems updating Windows
by
Alex5723
3 days ago -
Woman Files for Divorce After ChatGPT “Reads” Husband’s Coffee Cup
by
Alex5723
2 days, 4 hours ago -
Moving fwd, Win 11 Pro,, which is best? Lenovo refurb
by
Deo
7 hours, 51 minutes ago -
DBOS Advanced Network Analysis
by
Kathy Stevens
3 days, 17 hours ago -
Microsoft Edge Launching Automatically?
by
healeyinpa
3 days, 8 hours ago -
Google Chrome to block admin-level browser launches for better security
by
Alex5723
1 day, 5 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.