Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET PRINTER TO
Message
From
13/11/1999 22:54:59
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00289709
Message ID:
00291053
Views:
28
> I'm having some problems with a report and printing to an NT printer. I have removed all printer-related 'stuff' in the actual report .FRX file, but am still encountering difficulties. I created a test program and ran it in the VFP command window, and got the correct results. when I compiled the test program and ran the executable, the report printed out on the workstation's default printer. Here is the code:
>
>clear all
>close all
>use data\printers
>go bott
>set printer to name (printers.queue)
>report form poop noconsole to printer
>
>
>note: the value of printers.queue is a character string = \\DEV1\Okidata OL->410e

There are a number of threads here on this issue and also a couple of FAQ's

But to boil it down .. give the following a try. There are some 'issues' with
SET PRINTER TO NAME that needs work arounds.

lcPrinter = printers.queue

SET PRINTER TO DEFAULT
SET PRINTER TO NAME "&lcReturn"

dont know why but this seems to fix most problems.
Previous
Reply
Map
View

Click here to load this message in the networking platform