PRINTING VIA API - ACCESS 2000

E

eb

Hi 2 all,
I am trying to utilize API in ACCESS 2000 to access the printers.
Was told to use WinSpool.DRV thus:

Declare Function ENumPrinters Lib "winspool.drv" Alias "ENumPrintersA" (ByVal flags As Long, ByVal name As String, __
ByVal Level As Long,pPrinterEnum As Long, ByVal cdBuf As Long, pcbNeeded As Long, pcReturned As Long) As Long

Const PRINTER_ENUM_LOCAL = &H2

But I get error
CAN'T FIND DLL ENTRY POINT ENumPrintersA in WinSpool.DRV


Was also told to rename WinSpool.DRV to WinSpool.dll - did not work..

Anybody has any idea
Many Thanks
eb
 
D

Douglas J. Steele

The declaration I have shows pPrinterEnum As Byte, not pPrinterEnum As Long

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)



Hi 2 all,
I am trying to utilize API in ACCESS 2000 to access the printers.
Was told to use WinSpool.DRV thus:

Declare Function ENumPrinters Lib "winspool.drv" Alias "ENumPrintersA"
(ByVal flags As Long, ByVal name As String, __
ByVal Level As Long,pPrinterEnum As Long, ByVal cdBuf As
Long, pcbNeeded As Long, pcReturned As Long) As Long

Const PRINTER_ENUM_LOCAL = &H2

But I get error
CAN'T FIND DLL ENTRY POINT ENumPrintersA in WinSpool.DRV


Was also told to rename WinSpool.DRV to WinSpool.dll - did not work..

Anybody has any idea
Many Thanks
eb
 
E

eb

Thanks Doug, for prompt response.
I changed the declaration, but still having problems.
However, I found the MS support page - which for some reason I could not find last couple of days (wierd at least..)

http://support.microsoft.com/default.aspx?scid=kb;en-us;200611

and I will try that first. I will post again if I encounter more problems

Thanx & Best Regards
eb


Hi 2 all,
I am trying to utilize API in ACCESS 2000 to access the printers.
Was told to use WinSpool.DRV thus:

Declare Function ENumPrinters Lib "winspool.drv" Alias "ENumPrintersA" (ByVal flags As Long, ByVal name As String, __
ByVal Level As Long,pPrinterEnum As Long, ByVal cdBuf As Long, pcbNeeded As Long, pcReturned As Long) As Long

Const PRINTER_ENUM_LOCAL = &H2

But I get error
CAN'T FIND DLL ENTRY POINT ENumPrintersA in WinSpool.DRV


Was also told to rename WinSpool.DRV to WinSpool.dll - did not work..

Anybody has any idea
Many Thanks
eb
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top