Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report going to default printer no matter what the setti
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00929314
Message ID:
00929355
Views:
10
Normally it will go to the default printer if 'MY PRINTER' is not found.
What kind of operating system? Mysekf I had problem with Server2003 and XP Pro workstation.

Try this:
LOCAL ARRAY laPrinter[1]
llPrinter = .F.
lnPrinter = APRINTERS(laPrinter)
lcPrinterName = ""
FOR i = 1 TO lnPrinter
IF AT( "My PRINTER NAME", ALLTRIM(laPrinter[i,1])) > 0
lcPrinterName = ALLTRIM(laPrinter[i,1])
llPrinter = .T.
EXIT
ENDIF
ENDFOR
IF llPrinter
SET PRINTER TO NAME (lcPrinterName)
ENDIF
Diane Robitaille eng.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform