Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why get the consistency error of resources ?
Message
De
07/01/2002 10:36:56
 
 
À
07/01/2002 10:11:24
Raymond Lee
Digicentury (Guangzhou)
Guangzhou, Chine
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00601486
Message ID:
00601492
Vues:
23
If all you printers are set-up to have unique ports - e.g
LPT1
LPT2
LPT3
LPT7
...
why do not use textmerge to create a text file containing the text you want to print and then send this text to the printer
* <i>Here goes the lines for creating the txtmerge.dat file</i>
Set TextMerge TO <i>c:\temp\txtmerge.dat</i>
* <i>USE "\" instead of "?" and "\\" instead of "??", e.g: </i>
\Some text written on 
\\<< date() >>
Set TextMerge To
* <i>Finished creation of txtmerge.dat file</i>
lcTextToPrint = FileToStr('<i>C:\temp\txtmerge.dat</i>')
lnPrintHandle = FOPEN('LPT<i>1</i>', 2) &&Open Printer - let it be on port LPT1 for buffered write-only access
FWRITE(lnPrintHandle, lcTextToPrint)
FCLOSE(lnPrintHandle)
* Repeat above when necessary - why not move it to a UDP (user-defined procedure)?
Hope this is useful info to you
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform