Re: Printer control characters in Informix Report
Posted in 1994
On 6 Sep 1994, John Sinues wrote: .......... > Can you embed printer control characters in an Informix-4GL > report program? I want to send my output to an HP printer, ......... Yes, you can. For example, ASCII(124) gets you a vertical bar on an HP deskjet and probably most other things as well. You can embed it in a string to be printed, as in the following example where it is placed as a column divider in every 20th print position of each detail line depending on the value of p_total_requests. for j1 = 1 to p_total_requests -1 let p_alpha = j1 * 20 let mp_work_comment[p_alpha, p_alpha] = ASCII(124) end for OR it can be printed as in the following examples which allow continuation of the vertical divider through lines with no detail information. if p_total_requests > 1 then print column 40, ASCII(124); end if if p_total_requests > 2 then print column 60, ASCII(124); end if if p_total_requests > 3 then print column 80, ASCII(124); end if print column 131, " " Good luck. Send back directly for more detail if you need to. -- Con Woodall Colorado St. U.; Veterinary Teach. Hosp.; Ft. Collins CO 80523; 303-491-1244 FAX 303-491-4414 cwoodall@vth1.vth.colostate.edu You can do anything with a computer, but you might not want to. --