× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Highlight Printer lines...
  • From: Anton Gombkötö <Gombkoetoe@xxxxxxxxxx>
  • Date: Fri, 10 Dec 1999 17:21:00 +0100

Read the original post!

Gade already tried to print the line two times and had no success!

As Buck wrote, a laser printer first "prints" to his memory and is able to
address the same point multiple times, as he has to when one prints lines
multiple times on the same spot. To be black, a bit is set to '1', to be
white, it stays/is set to '0'. And if you set it three times to '1', it
won't be "1er" or "blacker".

Some of you, however, are successful with double or triple-printing the same
line. But that's the intelligence of the interface. Some interfaces
recognize "Ah! A double printed character - let's shift the second one a
pixel to the right and down, so the user has the impression of a bold font".

Gade, i wouldn't code any escape sequences into your source. This may work
fine for the first printer. What do you do if this one is damaged in a year
or so and someone decides to buy printer x from y, which does not understand
e.g. PCL? Or, even worse, do it additionally on printer x, too.

You can do (almost) everything with an externally described printer file
what you can do with "program described" printer files. And you can do more,
as highlighting <g>.

Define a line "standard" with a field with e.g. 132 chars and fill it in
your program. Maybe use some data structures or arrays to setup your line.

And another definition "bold", with the same field, may have the attribute
HIGHLIGHT.

Then you can WRITE standard or WRITE bold instead of your EXCEPTs, and you
should be happy then.

Your program logic changes only a little bit, you have a tiny printer file,
and you can do everything you want.

0.02 Euro from

Anton Gombkötö
AS Software
http://www.ASsoft.com
Vienna, Austria, Europe


--
Anton Gombkötö
mailto:Gombkoetoe@ASsoft.com

AS Software GmbH

http://www.ASsoft.com
Jedleseer Strasse 3
A-1210  Wien
Tel.:  +43 1 278 15 01-0
Fax:  +43 1 278 15 01-22

-----Ursprüngliche Nachricht-----
Von: L. S. Russell <leslier@datrek.com>
An: <RPG400-L@midrange.com>
Gesendet: Freitag, 10. Dezember 1999 16:26
Betreff: Re: Highlight Printer lines...


> In that case all ya have to do is define the line to be "highlighted"
twice.
> Once with a Space After value of 0(zero) and once with a Space After value
of
> whatever you need it to be.
> Example
>
>  OFilename++DF..N01N02N03Excnam++++B++A++Sb+Sa+.......
>  O          E            Head           0
>  O                       SideBox            132
>  O          E            Head           3
>  O                       SideBox            132
>
> Gade_R_Reddy@consecofinance.com wrote:
>
> > Thanks for the suggestions.
> >
> > But my Printer file is described in my program. Its not an external
> > described file.
> >
> > Thanks.
> > Gade.
> >
> > boothm@earth.goddard.edu@midrange.com on 12/09/99 06:28:16 PM
> >
> > Please respond to RPG400-L@midrange.com
> >
> > Sent by:  owner-rpg400-l@midrange.com
> >
> > To:   RPG400-L@midrange.com
> > cc:
> > Subject:  Re: Highlight Printer lines...
> >
> > This works for me:
> >
> >       * Line 1 of address:
> >      A            LL1           32A        8
> >      A                                      HIGHLIGHT
> >
> > Field LL1 prints bold even on laser printers.
> > _______________________
> > Booth Martin
> > boothm@earth.goddard.edu
> > http://www.spy.net/~booth
> > _______________________
> >
> > Gade_R_Reddy@consecofinance.com
> > Sent by: owner-rpg400-l@midrange.com
> > 12/09/1999 11:25 AM
> > Please respond to RPG400-L
> >
> >         To:     RPG400-L@midrange.com
> >         cc:
> >         Subject:        Highlight Printer lines...
> >
> > I have a printer file defined in my program.
> >
> > Is there any way we can highlight(BOLD) some lines on the printer file.
(
> > i
> > did tried printing the line at the same postion twice, but it did't help
> > me
> > out ).
> >
> > I think it depends on the printer also??? I don't know.
> >
> > Does anybody have any ideas???
> >
> > Thanks.
> >
> > +---
> > | This is the RPG/400 Mailing List!
> > | To submit a new message, send your mail to RPG400-L@midrange.com.
> > | To subscribe to this list send email to RPG400-L-SUB@midrange.com.
> > | To unsubscribe from this list send email to
RPG400-L-UNSUB@midrange.com.
> > | Questions should be directed to the list owner/operator:
> > david@midrange.com
> > +---
> >
> > +---
> > | This is the RPG/400 Mailing List!
> > | To submit a new message, send your mail to RPG400-L@midrange.com.
> > | To subscribe to this list send email to RPG400-L-SUB@midrange.com.
> > | To unsubscribe from this list send email to
RPG400-L-UNSUB@midrange.com.
> > | Questions should be directed to the list owner/operator:
> > david@midrange.com
> > +---
> >
> > +---
> > | This is the RPG/400 Mailing List!
> > | To submit a new message, send your mail to RPG400-L@midrange.com.
> > | To subscribe to this list send email to RPG400-L-SUB@midrange.com.
> > | To unsubscribe from this list send email to
RPG400-L-UNSUB@midrange.com.
> > | Questions should be directed to the list owner/operator:
david@midrange.com
> > +---
>
> --
> L. S. Russell Programmer/Analyst
> Datrek Professional Bags, Inc.
> 2413 Industrial Drive
> Springfield, TN. 37172
> mailto:leslier@datrek.com
> http://www.datrek.com
> --
>
>
> +---
> | This is the RPG/400 Mailing List!
> | To submit a new message, send your mail to RPG400-L@midrange.com.
> | To subscribe to this list send email to RPG400-L-SUB@midrange.com.
> | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator:
david@midrange.com
> +---

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.