> 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
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