Walter Meester
HoogkarspelPays-Bas
Ed, Cristobal,
>In VFP6, SET('PRINTER',3); I don't know of an equivalent under VFP5, so you'd need to track this in your application (doable with GETPRINTER(), since it returns a string name of the printer or a null string if cancelled, not with SYS(1037), which always returns a null string.)
One trick is to create a dummy quick report in the following manner:
create a dummy cursor:
CREATE CURSOR DUMMYCURSOR(DUMMY C)
then create a dummy quick report
CREATE REPORT DUMMYREPORT FROM DBF("DUMMYCURSOR")
open the report as a table:
USE Dummyreport.frx
And read the second line of the Expr field.
cDefaultFoxPrinter=STRTRAN(MLINE(Expr,2),"DEVICE=","")
It's kind of slow, but it seems to work.
Walter,
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement