Philip A. Viton wrote:
> 
> Thanks - David Mitchell's suggestion does indeed work. One more
> question, if I may: in his argument
> 
> 'Xerox WorkCentre Pro 55 PS';(,2-2);<<0
> 
> the last item is equivalent to a NULL argument. Is there some way to
> actually get information from this parameter, which is a pointer to a
> PRINTER_DEFAULTS structure (which contains, in turn a pointer to a
> DEVMODE structure) - or is all this just too complicated to be usable in J?

I think you should specifying NULL for the first call to openprinter because you
don't know what PRINTER_DEFAULTS should be at that moment.

use winspool.drv DocumentPropertiesW to retreive default DEVMODE and modifying
it as you like. Then you have your DEVMODE for openprinter or createdc.

I think it is quite feasible to use win32 api for printing instead of using J's 
wd.

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

Reply via email to