Re: Printing same report to matrix and/or laser printer
Posted in 2000
--- Mike Segel <Postmaster@iiug.iiug.org> > wrote: >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. >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 > > >Obnoxio The Clown wrote: > >> 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