Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 MS Access
 Printer Function in Access

Author  Topic 

Hyukevain
Yak Posting Veteran

66 Posts

Posted - 2004-10-29 : 01:32:55
Hi All,

I want to get the default paper id from printer that attached in my computer.
I've using OpenPrinter and EnumForms API function the get it.
My problem is, I cannot detect my printer name that needed when using OpenPrinter function.
Using VB, I have no problem, just use Printer.DeviceName function to retrive it, but in Access, when I use VB.Printer.DeviceName function, my ADP program start to hang and close unexpectedly.
Is the any API that can subtitude the Printer.DeviceName function do I can detect my printer name ?

Regards,
Mike
   

- Advertisement -