Re: [OT] visualbasic more?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Pete Lomax wrote:

> If OpenPrinter(sPrinterName, more lPrinter, NULLPTR)  Then

Try searching for "openprinter". Here's one of many references:

   http://www.merrioncomputing.com/Programming/PrintStatus.htm

The proper VB declaration is:

Private Declare Function OpenPrinter Lib "winspool.drv" _
    Alias "OpenPrinterA" (ByVal pPrinterName As String, _
    phPrinter As Long, pDefault As PRINTER_DEFAULTS) As Long

I have no idea what 'more' might be referring to. That paremeter expects is a 
pointer to the printer that's being used.

-- David Cuny

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu