>Dear George:
>Thank you for answering me twice. Your first answer on the printer.hdc was very helpful, but I still could not print a tiff image from a third-party ActiveX (tech support of this ActiveX do not support VFP), after calling API functions as you suggested. Then, I thought maybe I need to initiate the printer as supposed to in VB (In the sample code (written in VB), there is a command: printer.print, and printer.hdc was after that. So, if you have any idea regarding an VFP equivalent to the VB command (print.print), please let me know. I'd appreciate it very much. Thanks.
Hi Monique,
This is a shot in the dark, but you might try:
DECLARE SHORT OpenPrinter IN Winspool.drv;
STRING @pPrinterName, INTEGER @phPrinter,;
STRING @pDefault
DECLARE SHORT ClosePrinter IN Winspool.drv;
INTEGER hPrinter
lnhandle = 0
llresult = (OpenPrinter(@lcprinter, @lnhandle, 0) # 0)
IF llresult
= ClosePirinter(lnhandle)
ENDIF
hth,
George
Ubi caritas et amor, deus ibi est