Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing with ??? in VFP?
Message
De
01/03/2002 14:30:16
 
 
À
01/03/2002 14:11:30
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00510398
Message ID:
00627139
Vues:
13
Hi Calvin, here is the code I am using to test. The only thing missing in this example is the memory variables that I restore from av_mem (as you can see in the code). All variables beginning with 'av_' are variables that contain the printer commands for bold on, bold off, etc for an HP LaserJet II. The codes for the appropriate printer could be substituted. This only appears to happen with laserjet printers by the way (so far), but it happens with ALL HPs that I have tested.
*-------------------------------------------
*--Test code for testing ??? ejecting pages
SET TALK OFF
opt = ''          
RESTORE from c:\programnotes\av_mem additive	&& these are the printer codes used below
maccount="8393827363465"
ag_state="NC"
SET CONSOLE OFF
port = GETPRINTER()
SET PRINTER TO NAME (port)
SET DEVICE TO PRINT
_pEject="NONE"

??? opt
SET PRINTER ON
??? av_lpi8
??? av_cpi12
??? av_boldon
?? "MY TEST PREMIUM FINANCING CORPORATING, INC." AT 0
??? av_boldoff
??? av_cndsprt
? "9999 Rikkiteyti Dr.   P.O. Box 999999"
??? av_cpi12
??? av_boldon
?? "ACCOUNT NO. "+RTRIM(ag_state)+' '+TRANS(maccount,"@B 99999999999999") AT 70
??? av_boldoff
??? av_cndsprt
? "MyTown, South Carolina 23265-9999  Phone 800-555-1212"
?
? 'End of Test Only one page should print, NOT 2!'

EJECT
SET CONSOLE ON
SET PRINTER OFF
SET DEVICE TO SCREEN
SET PRINTER TO
SET TALK ON
*-------------------------------------------
>Can you post a section of report code that needs to work in VFP7. I went throught the same thing about 2 years ago, but in our case we had 700+ contracts as FoxPro Reports. The reports were full of microline feed commands to the printer. This is all somewhat hazy in my memory now ( i tend to forget the bad) but the first thing I did was write a program that converted the report to a prg file in the ??? and ?? format. I needed to debug these because the conversion was not perfect. I then used the RawPrint VCX to print these in VFP 7. It works but on some machines there are problems with spool32 errors and the need to change the EPP/ECP settings in BIOS.
.·*´¨)
.·`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