Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing Problems
Message
From
28/02/2006 13:30:44
 
 
To
28/02/2006 12:04:47
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:
01100002
Views:
19
You stated that tried all of that with no luck. Can you reproduce the problem on your computer? If so, did you test my exact code? I ask because I prompt for the printer in my example and sometimes if vfp cannot locate a matching printer it prints to the windows default printer instead. Which may be on LPT1 in your case. Is a valid printer set under set('printer',3) and set('printer',2) before you start the code?


>I am running two different types of reports 1. Regular Foxpro Reports 2. Special Checks that requires me to make calls directly to the Dot Matrix printer. Everything works as it should until I print to the Dotmatrix printer using the @ Say command. Then after it is called, ALL Print jobs are Routed to the Dot matrix (which is on lpt1). if I change to a different printer on LPT1 it then routes all jobs to whatever is on LPT1
>
>I need help in figureing out why it routes all print jobs to whatever is on LPT1 after I make this call.
>
>As to your suggestion I have already tried all that and still no luck.
>
>
>
>
>
>Original Message::
>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.
.·*´¨)
.·`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
Reply
Map
View

Click here to load this message in the networking platform