Printing same report to matrix and/or laser printer 
Author Message
 Printing same report to matrix and/or laser printer



Quote:

>> i would like to know that whether is it possible to use a laser printer to
>> print out a report that already writen using informix 4gl?
>> if possible, how can i make it?
>> does it need other softwares to help me to make it?
>> if it does,what's the software that is suitable for it

>Yes.  Send the report to the line printer spooler, either with REPORT TO
>PRINTER or REPORT TO PIPE "printer-spooler-program -with-options".
>Obviously, this assumes you have some sort of printer spool queue set
>up, so you need the software to manage that.  The traditional names are
>lp and lpr on Unix, and the software comes with the system.

>Since this is so obvious, there must be more to your question than meets
>the eye.

>Doing special formatting is tricky.  There are a variety of ways that
>can be made to work.  These days, one of the simpler ones is to generate
>an HTML file, read that into a browser, and have the browser do the
>printing.  Alternatively, have the report generate some other markup
>language (eg troff -- done that, complete macro package from the ground
>up and all).

How can I make produce report file using I4GL that can be printed on matrix
printer with continuous paper (8.5"x12") or laser printer with single sheet
paper (8.5"x11")?

For example:
Make report that will start at new page for every customer, each row will have
information about invoice number, invoice date and total invoice value, at the
begining of every page will be customer number and name, at the end of every
page will be total value for all invoices at that page and cumulative value for
invoices for that customer.

I dont't want to write two reports and user want to make choice of output device
(matrix printer or laser)?



Wed, 18 Jun 1902 08:00:00 GMT
 Printing same report to matrix and/or laser printer


Quote:

>On Thu, 10 Aug 2000 12:30:18 -0700, Jonathan Leffler



> >> i would like to know that whether is it possible to use a laser printer
>to
> >> print out a report that already writen using informix 4gl?
> >> if possible, how can i make it?
> >> does it need other softwares to help me to make it?
> >> if it does,what's the software that is suitable for it

> >Yes.  Send the report to the line printer spooler, either with REPORT TO
> >PRINTER or REPORT TO PIPE "printer-spooler-program -with-options".
> >Obviously, this assumes you have some sort of printer spool queue set
> >up, so you need the software to manage that.  The traditional names are
> >lp and lpr on Unix, and the software comes with the system.

> >Since this is so obvious, there must be more to your question than meets
> >the eye.

> >Doing special formatting is tricky.  There are a variety of ways that
> >can be made to work.  These days, one of the simpler ones is to generate
> >an HTML file, read that into a browser, and have the browser do the
> >printing.  Alternatively, have the report generate some other markup
> >language (eg troff -- done that, complete macro package from the ground
> >up and all).

>How can I make produce report file using I4GL that can be printed on matrix
>printer with continuous paper (8.5"x12") or laser printer with single sheet
>paper (8.5"x11")?

>For example:
>Make report that will start at new page for every customer, each row will
>have
>information about invoice number, invoice date and total invoice value, at
>the
>begining of every page will be customer number and name, at the end of
>every
>page will be total value for all invoices at that page and cumulative value
>for
>invoices for that customer.

>I dont't want to write two reports and user want to make choice of output
>device
>(matrix printer or laser)?

IF user_chose_dot_matrix
THEN
   START REPORT foo TO PIPE "lp -ddotmarix"
ELSE
   START REPORT foo TO PIPE "lp -dlaser"
END IF
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


Wed, 18 Jun 1902 08:00:00 GMT
 Printing same report to matrix and/or laser printer
There is mention in the FAQ at the IIUG on how to make reports variable
length if that is the problem.  Else just make the report 11" long and
set the EndOfPage character to FormFeed so the report writer does not
try to pad the page to 11 lines with newlines.

Art S. Kagel


Quote:




> >> i would like to know that whether is it possible to use a laser printer to
> >> print out a report that already writen using informix 4gl?
> >> if possible, how can i make it?
> >> does it need other softwares to help me to make it?
> >> if it does,what's the software that is suitable for it

> >Yes.  Send the report to the line printer spooler, either with REPORT TO
> >PRINTER or REPORT TO PIPE "printer-spooler-program -with-options".
> >Obviously, this assumes you have some sort of printer spool queue set
> >up, so you need the software to manage that.  The traditional names are
> >lp and lpr on Unix, and the software comes with the system.

> >Since this is so obvious, there must be more to your question than meets
> >the eye.

> >Doing special formatting is tricky.  There are a variety of ways that
> >can be made to work.  These days, one of the simpler ones is to generate
> >an HTML file, read that into a browser, and have the browser do the
> >printing.  Alternatively, have the report generate some other markup
> >language (eg troff -- done that, complete macro package from the ground
> >up and all).

> How can I make produce report file using I4GL that can be printed on matrix
> printer with continuous paper (8.5"x12") or laser printer with single sheet
> paper (8.5"x11")?

> For example:
> Make report that will start at new page for every customer, each row will have
> information about invoice number, invoice date and total invoice value, at the
> begining of every page will be customer number and name, at the end of every
> page will be total value for all invoices at that page and cumulative value for
> invoices for that customer.

> I dont't want to write two reports and user want to make choice of output device
> (matrix printer or laser)?



Wed, 18 Jun 1902 08:00:00 GMT
 Printing same report to matrix and/or laser printer
Sigh.
This is one of the reasons why I don't really read this newsgroup anymore.
No real thought and too many lame questions.

Ok, so the clown showed you  a simple way to redirect the output.
But then you also have to deal with different page lengths and formating.
Gee, do you think you can write two different reports in the same program using
the same query? Then chose the correct report for output?

Seems simple enough to me. As to embedding escape codes, you can do it. Sending
the output to HTML then use a browser to output it to a printer is a lame excuse
for  a solution.

Considering postscript and printer codes are well documented, you could
embed them into your report.

Damn, we solved this problem what '92, '93? I forget. Its been too long.
(But this is a good example of why I like 4GL for report writing.)

-Mikey

Quote:


> >On Thu, 10 Aug 2000 12:30:18 -0700, Jonathan Leffler



> > >> i would like to know that whether is it possible to use a laser printer
> >to
> > >> print out a report that already writen using informix 4gl?
> > >> if possible, how can i make it?
> > >> does it need other softwares to help me to make it?
> > >> if it does,what's the software that is suitable for it

> > >Yes.  Send the report to the line printer spooler, either with REPORT TO
> > >PRINTER or REPORT TO PIPE "printer-spooler-program -with-options".
> > >Obviously, this assumes you have some sort of printer spool queue set
> > >up, so you need the software to manage that.  The traditional names are
> > >lp and lpr on Unix, and the software comes with the system.

> > >Since this is so obvious, there must be more to your question than meets
> > >the eye.

> > >Doing special formatting is tricky.  There are a variety of ways that
> > >can be made to work.  These days, one of the simpler ones is to generate
> > >an HTML file, read that into a browser, and have the browser do the
> > >printing.  Alternatively, have the report generate some other markup
> > >language (eg troff -- done that, complete macro package from the ground
> > >up and all).

> >How can I make produce report file using I4GL that can be printed on matrix
> >printer with continuous paper (8.5"x12") or laser printer with single sheet
> >paper (8.5"x11")?

> >For example:
> >Make report that will start at new page for every customer, each row will
> >have
> >information about invoice number, invoice date and total invoice value, at
> >the
> >begining of every page will be customer number and name, at the end of
> >every
> >page will be total value for all invoices at that page and cumulative value
> >for
> >invoices for that customer.

> >I dont't want to write two reports and user want to make choice of output
> >device
> >(matrix printer or laser)?

> IF user_chose_dot_matrix
> THEN
>    START REPORT foo TO PIPE "lp -ddotmarix"
> ELSE
>    START REPORT foo TO PIPE "lp -dlaser"
> END IF
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com



Wed, 18 Jun 1902 08:00:00 GMT
 Printing same report to matrix and/or laser printer


Quote:

>Sigh.
>This is one of the reasons why I don't really read this newsgroup anymore.
>No real thought and too many lame questions.

>Ok, so the clown showed you  a simple way to redirect the output.
>But then you also have to deal with different page lengths and formating.
>Gee, do you think you can write two different reports in the same program using
>the same query? Then chose the correct report for output?

Well put. Wish I'd read this before adding my tuppence to Obnoxio's snippet. You don't even have to *write* another report, just cut and paste, edit for page length and any other printer specific hoo ha and you're done.

Quote:
>Seems simple enough to me. As to embedding escape codes, you can do it. Sending
>the output to HTML then use a browser to output it to a printer is a lame excuse
>for  a solution.

>Considering postscript and printer codes are well documented, you could
>embed them into your report.

>Damn, we solved this problem what '92, '93? I forget. Its been too long.
>(But this is a good example of why I like 4GL for report writing.)

>-Mikey


>> IF user_chose_dot_matrix
>> THEN
>>    START REPORT foo TO PIPE "lp -ddotmarix"
>> ELSE
>>    START REPORT foo TO PIPE "lp -dlaser"
>> END IF

==
Maintainer of the procrastinator's FAQ.                                      Well, maybe tomorrow I will be.

_____________________________________________________________
Want a new web-based email account ? ---> http://www.firstlinux.net



Wed, 18 Jun 1902 08:00:00 GMT
 
 [ 5 post ] 

 Relevant Pages 

1. Printing on matrix and laser printer

2. Report printing on laser printer

3. HELP: Printing dbase III report on Laser Printer

4. Printing reports from a Foxbase+ program on a laser printer

5. Print Bar-code in report with the Dot Matrix Printer

6. Print Bar-code in report with the Dot Matrix Printer 24pins

7. Print Bar-code in report with the Dot Matrix Printer

8. printing contineous report in a dot matrix printer

9. Printing PROBLEM on a Laser Printer

10. Printing to Laser Printer from ISQL

11. Printing images on laser printers

12. How to print your company logo to a HP Laser Printer


 
Powered by phpBB® Forum Software