General information
Category:
Reports & Report designer
Robert,
I suspect that the problem is using the literal "G" maybe?
instead of ? CHR(27)+"G"
Try: ? CHR(27)+CHR(71)
I'm not sure about the "-" and the character 1. either. I think this should be:
Instead of: ??CHR(27)+'-'+'1'
Try: ?? CHR(27)+CHR(45)+1
The key here is when using the type of codes that are of the form:
ESC- (n) n is the literal number, not the ASCII equivalent I believe.
(Note both examples are in decimal not hex)
I spent the summer working with Rawprint.fll, and sending reports through to dot matrix printers (OTC 4100 & OKI320L) both using EPSON FX100 emulation.
this is what I did to make my life easier:
1) I stored all of the print codes I needed in a table.
If I remember correctly I placed them into the table like this:
REPLACE prn_boldon WITH CHR(27)+CHR(69) && ESC+E on an Epson fx100
2) Then I prepended/appended them by using a memo field in a tmp cursor:
* set lc_prnCodeStr from print codes table
REPLACE memoField with lc_prnCodeStr
Then after printing the report form (done in FoxPro for DOS ver2.6a)
to a text file, I appended it to the memo field:
APPEND MEMO memField FROM (lc_textFile)
* Append any post processing print codes here
* Then COPY MEMO memField to a final printing file
3) I also used a lot of inline stuff using like this too:
boldVar = ALLTRIM(prncodeTable.boldonField) && Set in a library function
?? boldvar
HTH
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only