OpenPrinter=: 'winspool.drv OpenPrinterA  i *c *i *'&cd
  OpenPrinter'Xerox WorkCentre Pro 55 PS';(,2-2);<<0
+-+--------------------------+------+---+
|1|Xerox WorkCentre Pro 55 PS|528252|+-+|
| |                          |      ||0||
| |                          |      |+-+|
+-+--------------------------+------+---+

--
David Mitchell

Philip A. Viton wrote:

Can anyone provide an example of a lookup to OpenPrinterA which works (pick your own printer)? Consider (this is actually beta-s on win-xp):

  load 'winapi dll'

   test =. 'OpenPrinter' win32api
   test
   test 'HP5000PSEnv';0;<,_1
|domain error: test
|       test'HP5000PSEnv';0;<,_1
   cder ''
1 0

The error here is 'file not found'. Could the problem be that there is (at least on XP) no winspool.dll but only winspool.drv? Also, I'm by no means sure that the last argument is correct for a prototype of *i , so if anyone can help, I'd be most grateful.





------------------------
Philip A. Viton
City Planning, Ohio State University
275 West Woodruff Avenue, Columbus OH 43210
[EMAIL PROTECTED]

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to