Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing Problems
Message
From
27/02/2006 16:04:07
 
 
To
27/02/2006 15:29:57
Jeff Mckay
Utah Department of Health
Salt Lake City, Utah, United States
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01099631
Message ID:
01099659
Views:
20
I am confused. What report are you running? I only see @...say commands but no report form is run that I can see. What happens if you do the following:
lcprinter = SET('PRINTER',3)
set printer to name getprinter()
set device to print

*your code to do the @...says

SET PRINTER OFF
SET CONSOLE ON
SET DEVICE TO SCREEN
SET PRINT TO
SET PRINT TO
set printer to name (lcprinter)
does that work? In my experience, if the printer name does not match exactly the windows printer name, then VFP will print to the windows default printer.

>this is a difficult problem and I am not sure where to place it. I have a problem with printing after printing to a dot matrix printer.
>
>The Set is that I have two printers 1. Laser Printer 2. Dot Matrix printer. The laser printer is networked for printing standard reports. The Dotmatrix printer is connected through lpt1 on the computer and is used to print checks.
>
>I am able to print to the laser printer fine until I print to the Dot Matrix printer. Then at that point everything prints to the dot martrix printer (or more apporpriatly everything prints to whatever is on lpt1). The only way to get out of this is to restart the program and then works fine.
>
>for the code that calls the Dot Matrix Printer I follow the following format
>
>SET DEVICE TO PRINTER
>
>SET PRINTER TO NAME "printer name"
>
>@ ... Say ....
>@ ... Say ....
>@ ... Say ....
>
>Set printer to
>SET DEVICE TO SCREEN
>
>Steps taken to resolve
>
>1. Cleaned the printer infor out of the reports tag, tag2 and exp feilds
>2. Tried manually setting the printer back to the default printer when printing a regular report, I did this with a GetPrinter()
>3. Eliminated the Set Printer to Name "printer name" command to see what would happen, still sent job to the lpt1
>4. Eliminated the @ Say command and replaced with a ??? command for test and seemed to work fine
>
>I am now convinced that using the @ Say command is causing my problems, however I don't really have another option in this case.
>
>Is there away to release foxpro from defaulting everyting to LPT1
>
>Thanks
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform