Walter Meester
HoogkarspelNetherlands
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,
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only