|
Try: { int = 0; while (i < 10(or how ever many blank lines you need) { printf("\n"); i++; } return; } Scott T. Finn ----- Original Message ----- From: "Jevgeni Astanovski" <j.astanovski@sampopank.ee> To: <C400-L@midrange.com> Sent: Thursday, February 07, 2002 6:13 AM Subject: [C400-L] Printing on a matrix printer > Can someone explain me, how can I print properly on a matrix printer from my > C program? > Printer is a small cheque printer STAR SP200 (20 chars wide). > I made a print file with one format - all constants and variables - > everything works fine! > But that foolish printer wants me to generate several empty rows, so that > user can tear the slip away - and I cannot understand, how to do it! > My form ends on line 13. I tried to add a constant on line 25 and this > constant is filled with spaces - no effect. I placed a variable on line 25, > filled it with spaces from the program - also no effect. > The only hack, that I found is to place an unprintable char into this > varuiable - then it skips empty lines and "simulates" printing. So I have a > solution - but it is a dirty hack :-( > > I should add, that the printer is connected to a PC and I use 3812 emulation > from Mochasoft. > > May be there is a proper solution of this problem? > > Actually may be this list is not the optimal place for such a question, but > people is pretty helpful here...... > > TIA, > Jevgeni Astanovski > Sampo Bank > Tallinn, Estonia > > > _______________________________________________ > This is the C programming iSeries / AS400 (C400-L) mailing list > To post a message email: C400-L@midrange.com > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/cgi-bin/listinfo/c400-l > or email: C400-L-request@midrange.com > Before posting, please take a moment to review the archives > at http://archive.midrange.com/c400-l. >
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.