Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
iate printer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00148180
Message ID:
00148206
Vues:
32
>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
* lcprinter is the name of the printer as it's returned in
* the first column of the array filled by APRINTERS()
lnhandle = 0
llresult = (OpenPrinter(@lcprinter, @lnhandle, 0) # 0)
IF llresult
  * Your print stuff here
  = ClosePirinter(lnhandle)
ENDIF
hth,
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform