Hi Paul,
Nope, just looked at VB WINAPI viewer and tested using Bo's sample replacing gdi32.dll by winspool.drv. I just checked that 'make routine! was working for 'OpenPrinter. -DocKimbel. Paul Tretter wrote: > > Hi Doc - do you have a sample of the code you use? > > Paul Tretter > > ----- Original Message ----- > From: "Nenad Rakocevic" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, June 27, 2002 1:26 PM > Subject: [REBOL] Re: View/Pro and accessing Windows Printer API (gdi32.dll) > > > > > Hi Bo, > > > > Try using %winspool.drv instead of %gdi32.dll for OpenPrinter function. > > (Works here on W2K) > > > > HTH, > > -DocKimbel. > > > > > > Bohdan or Rosemary Lechnowsky wrote: > > [...] > > > >> gdi32: load/library %gdi32.dll > > > >> startdoc: make routine! ["Start Document" hdc [string!] docinfo > > > [struct! [cbsize [int] lpszdocname [string!] lpszoutput [string!] > > > lpszdatatype [string!] fwtype [int]]] return: [int]] gdi32 "StartDocA" > > > > > > ;So far, so good... > > > > > > >> openprinter: make routine! ["Open Printer" pprintername [string!] > > > phprinter [string!] pdefault [string!] return: [integer!]] gdi32 > "OpenPrinterA" > > > ** Access Error: Cannot open OpenPrinterA > > > ** Near: openprinter: make routine! ["Open Printer" pprintername > [string!] > > > phprinter [string!] pdefault [string!] return: [integer!]] gdi32 -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
