Re: Using Preprinted FOrms
Posted in 2001
mmmm solution, cut the netware server out of the picture. Smile, 'cause we attach a printer to lp0 on our box, lp to it and poof, kernel panic. Got patches but they didn't help. Aways, afaik there is no implicit method of determining the nth row result from a query short of playing with your maths, think an equivalent of the modulus operator. Or count them yourself. As for inserting the FF, use the ASC command in your print instruction brett "Lucky Leavell [RIS]" wrote: > > Version: 7.31 > OS: AIX 4.3.3 > Printer: HP4000TN > > I have been given the joyful task of making our Informix 4GL 1099 print > program work with the prepriinted 1099(MISC) forms. I figured out how to > make it work IF the printer were being dealt with directly by AIX BUT our > setup uses Novell to handle printing. The problem is that Novell > apparently strips the top/bottom margin resets (to zero), prints approx. > 1/2" each at the top/bottom of the page with a very non-standard 66 lines > in between! > > I think I could make it work if I could figure out how to issue a hard > form feed at the end of each third form instead of spacing to the top of > the fourth form (which is the first form on the next 8.5 x 11 sheet). > > Questions: > > 1. Is there any way in the Informix 4GL to issue commands for > every nth (3rd here) row of the SELECT? (Each row represents > one full 1099 form.) > > 2. How would one send a hard FF (0x0C) in the report output? > > (In case you can't tell, I'm rather new to Informix 4GL!) > > Thank you, > Lucky > > Lucky Leavell Phone: (800) 481-2393 or (812) 366-4066 > UniXpress - Your Source for SCO FAX: (888) 231-9640 or (812) 366-3618 > 1560 Zoar Church Road NE Email: lucky@UniXpress.com > Corydon, IN 47112-7374 WWW Home Page: http://www.UniXpress.com -- ----------------------------------------------------------------- Brett's 12th law of UNIX administration... People tend not to react well when they lose control over their computers. Typically, it brings out the worst in them ... ----------------------------------------------------------------- Brett Geer - UNIX Admin/Analyst/Programmer - Intratex Holdings. Tel. +27 31 717 4000 Direct. +27 31 717 4146 Fax. +27 31 717 4001 ----------------------------------------------------------------- The little voices are talking to me again, telling me to reach for a keyboard and type rm -rf /* last week they had me rm -rf `echo $MANPATH | sed 's/:/ /g'` now I fear I have no answers -----------------------------------------------------------------