Please let me know how to use FONT and FONTINDEX to handle different fonts. I got 133 record length and I need a different font for first 3 address lines and need different fonts for other detail lines ...etc.
I got the list of fonts and I am not sure exactly to handle the fonts at line level. I am using the following DJDE..
$DJDE RTEXT=('$REPORT=INVOICE TITLE=DEDUCTIBLE REIM
$DJDE OTEXT=(' **** LOAD LANDSCAPE ****',1,WAIT),;
$DJDE OTEXT=(' **** THIS JOB IS DONE ****',END,WAIT),;
$DJDE BEGIN=(1.5 IN,1.5 IN),DUPLEX=NO,;
$DJDE RTEXT=('DISTRIBUTION INSTRUCTIONS:
$DJDE RTEXT=(' JOB NUMBER 99999
$DJDE RTEXT=(' DEDUCTIBLE REIMBURSEMENT INVOICES
$DJDE RTEXT=(' HOLD THESE DOCUMENTS AT PRNTR FOR MAILING
Your help is highly appreciated.
<<E-Mail ID Removed>> Read Forum Rules.
Joined: 27 Apr 2005 Posts: 263 Location: Cincinnati OH USA
If I recall correctly, the first byte of the record (fontindex n) contains the relative number of the font specified in the font=(font1,font2,...). Each line is printed in the font relative to the index.
The actual length of the record becomes 134
pos 1 is print control character (ansi or machine code)
pos 2 id the font index
pos 3 thru 134 is the actual data to be printed
Please forget about my code and tell me how to change for few lines of report. I gave my sample code only. This code is not working for font switching.
I have a record length of 133. First byte is for carriage controls. Data is 132 length. I want to have one font for first 5 lines and the rest of the lines, I want another font. Again to change the font at the bottom of the report for totals.
Please suggest me a code for this using FONTINDEX or whatever in DJDE.
State and zip
Total amount due..$99,999,999.99
I need to have a font for the first address line and the other fonts for the rest of the report. Again the top font for the totals.