Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing with ??? in VFP?
Message
De
01/03/2002 14:04:12
 
 
À
01/03/2002 14:00:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00510398
Message ID:
00627115
Vues:
19
I'm testing the dirprtclass now...
Tracy

>Tracy,
>Could you wrap these programs with a SET PRINTER TO < FileName > and then send the file to the printer with something like RawPrint or dirPrtClass?
>
>>Hi Rodd,
>>What did you finally do to resolve this issue? I have the same problem. When I issue the first ??? no matter whether it is ??? " " or ??? followed by printer codes, the page ejects. After that, whenever I issue a new ??? it ejects a page. I have too many .prgs using ? 'text to print' to redo in a short period of time. Some are quite lenghthy contracts that have bold commands spread throughout the text to be printed too which forces a pageeject with ???, but it would take forever to redo them all.
>>
>>Tracy
>>
>>>Hello,
>>>
>>>We have a legacy DOS system. For various reasons, we're trying to recomplie our DOS code in VFP. (I know, it's ugly and not recommended but I don't have time to explain our reasoning.) Anyhow, everything seems to work fine except the use of ??? to send control codes to the printer.
>>>
>>>For some reason, the first use of ??? causes a page eject. After that initial ???, all the other uses of ??? work fine.
>>>
>>>You can see this from the command window with the following:
>>>
>>>set printer to name getprinter() && select your printer
>>>set printer on
>>>
>>>? "This is line 1"
>>>??? (control code)
>>>? "This is line 2"
>>>??? (control code)
>>>? "This is line 3"
>>>
>>>set printer off
>>>set printer to
>>>
>>>In that example, the first line would print, the page would eject and then the next two lines would print ... each line being affected by the preceding printer control code.
>>>
>>>Has anyone out there found a way to get ??? to work in VFP or have a clue as to what might be happening?
>>>
>>>Thanks for whatever help you can offer!
>>>
>>>Rodd
>>>
>>>P.S. Just to set your mind at ease, we don't plan to run this DOS/VFP hybrid forever ... it's just a stop gap for an already swamped programming team. 8?)
.·*´¨)
.·`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"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform