Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding name of active printer in VFP5.0
Message
From
30/08/1999 12:41:01
Walter Meester
HoogkarspelNetherlands
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00259088
Message ID:
00259235
Views:
18
Petter,

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
Next
Reply
Map
View

Click here to load this message in the networking platform