setting paper soure for printing
Posted: Fri Aug 07, 2009 12:56 pm
by Anonymous >> Wed, 4 Jan 2006 3:54:40 GMT
Hi All,
We have a situation where we need to print by passing a device context to an ActiveXControl (TXTextControl). The ActiveXControl print method takes a device context and all attributes such as paper source need to be set before calling this method.
The jade printer methods are of know use as we cannot get the device context from jade.
We can use the CMDPrint dialog and can get the device context from this dialog and set the paper source. The problem with this is we need to popup the dialog and this is not desirable as we want to automate the printing.
We can make a windows call
hdc := call createDC('WINSPOOL', app.printer.getPrinterName(), 0, 0)
but we have not found a call that allows us to set the paper source.
Does anyone have any ideas?
Or have any idea of how to make a windows call to set the paper source?
Thanks
Hi All,
We have a situation where we need to print by passing a device context to an ActiveXControl (TXTextControl). The ActiveXControl print method takes a device context and all attributes such as paper source need to be set before calling this method.
The jade printer methods are of know use as we cannot get the device context from jade.
We can use the CMDPrint dialog and can get the device context from this dialog and set the paper source. The problem with this is we need to popup the dialog and this is not desirable as we want to automate the printing.
We can make a windows call
hdc := call createDC('WINSPOOL', app.printer.getPrinterName(), 0, 0)
but we have not found a call that allows us to set the paper source.
Does anyone have any ideas?
Or have any idea of how to make a windows call to set the paper source?
Thanks