Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why get the consistency error of resources ?
Message
From
07/01/2002 10:36:56
 
 
To
07/01/2002 10:11:24
Raymond Lee
Digicentury (Guangzhou)
Guangzhou, China
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00601486
Message ID:
00601492
Views:
25
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!

Previous
Reply
Map
View

Click here to load this message in the networking platform