RE: Reports fonts in 4GL program
Posted in 2000
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL
You will need to locate the manual for the printer in question to identify the actual escape sequences required then produce code similar to the following :- define P_landscape char(5), P_italicon char(5), P_italicoff char(5), P_courier char(5), P_12cpi char(6) end . . let P_italicon = ASCII 027,ASCII 040,ASCII 115,ASCII 049,ASCII 083 let P_italicoff = ASCII 027,ASCII 040,ASCII 115,ASCII 048,ASCII 083 let P_landscape = ASCII 027,ASCII 038,ASCII 108,ASCII 049,ASCII 079 let P_12cpi = ASCII 027,ASCII 040,ASCII 115,ASCII 049,ASCII 050,ASCII 072 let P_courier = ASCII 027,ASCII 040,ASCII 115,ASCII 050,ASCII 084 . . print P_courier print P_landscape print P_12cpi etc... Regards Glyn Balmer -----Original Message----- From: Oscar Garcia [mailto:oscgarcia@hotmail.com] Sent: 01 December 2000 13:04 To: informix-list@iiug.org Subject: RE: Reports fonts in 4GL program Luis, Creo que entiendes el castellano.... de todas formas. Do you the sentence to change that values of the SO? Thanks (Gracias) Luis Carlos Diaz Otero <luiscarlosdiazo@yahoo.com> escribi' en el mensaje de noticias 9086ge$m9q$1@news.xmission.com... > > Remember: 4GL uses the OS resources, so if you need > any special function (changing the font or size, > i.e.), you've to do it at the SO level .... I think. > > > --- Oscar Garcia <oscgarcia@hotmail.com> escribi': > > Hi everybody! > > > > I would to know how to change the default font and > > size of the 4GL reports. > > Is there any special sentence to change the font? > > > > Thanks for your help! > > > > > > > ===== > ______________________________________Luis Carlos D'az OteroALCANOS DE COLOMBIA S.A. E.S.PCarrera 9 # 7-25Neiva (Huila (Colombia)) > > _________________________________________________________ > Do You Yahoo!? > Obtenga su direcci'n de correo-e gratis @yahoo.com > en http://correo.espanol.yahoo.com
Well
I hope to help.
Exists characters for control each printer for example bold, 12 cpi,
15 cpi, landscape, italcs, etc. depending of the printer.
This character of control you can load into table in database from
ascii file, the table can be:
create table printer
( prn_name char(10),
prn_init char(40),
prn_bold char(20),
prn_normal char(10),
prn_5cpi char(10),
prn_7cpi char(10),
prn_10cpi char(10),
prn_15cpi char(10),
prn_17cpi char(10),
prn_21cpi char(10),
prn_underline char(10)
);
You can eject a "select sentence" in 4GL program depending of printer
for access to control character.
If you want I can send control character for epson, laserjet printers in
this context
Best Regards
Ruben
In article <908o2v$red$1@news.xmission.com>,
"Balmer,Glyn" <glyn.balmer@uk.pirelli.com> wrote:
>
> You will need to locate the manual for the printer in question to
identify
> the actual escape sequences required then produce code similar to the
> following :-
>
> define
> P_landscape char(5),
> P_italicon char(5),
> P_italicoff char(5),
> P_courier char(5),
> P_12cpi char(6)
> end
> .
> .
> let P_italicon = ASCII 027,ASCII 040,ASCII 115,ASCII 049,ASCII 083 let
> P_italicoff = ASCII 027,ASCII 040,ASCII 115,ASCII 048,ASCII 083 let
> P_landscape = ASCII 027,ASCII 038,ASCII 108,ASCII 049,ASCII 079 let
P_12cpi
> = ASCII 027,ASCII 040,ASCII 115,ASCII 049,ASCII 050,ASCII 072 let
P_courier
> = ASCII 027,ASCII 040,ASCII 115,ASCII 050,ASCII 084 .
> .
> print P_courier
> print P_landscape
> print P_12cpi
>
> etc...
>
> Regards
>
> Glyn Balmer
>
> -----Original Message-----
> From: Oscar Garcia [mailto:oscgarcia@hotmail.com]
> Sent: 01 December 2000 13:04
> To: informix-list@iiug.org
> Subject: RE: Reports fonts in 4GL program
>
> Luis,
>
> Creo que entiendes el castellano.... de todas formas.
> Do you the sentence to change that values of the SO?
>
> Thanks (Gracias)
>
> Luis Carlos Diaz Otero <luiscarlosdiazo@yahoo.com>
escribi'
> en el mensaje de
> noticias 9086ge$m9q$1@news.xmission.com...
> >
> > Remember: 4GL uses the OS resources, so if you need
> > any special function (changing the font or size,
> > i.e.), you've to do it at the SO level .... I think.
> >
> >
> > --- Oscar Garcia <oscgarcia@hotmail.com> escribi': >
> > Hi everybody!
> > >
> > > I would to know how to change the default font and
> > > size of the 4GL reports.
> > > Is there any special sentence to change the font?
> > >
> > > Thanks for your help!
> > >
> > >
> >
> >
> > =====
> > ______________________________________Luis Carlos D'az
> OteroALCANOS DE
> COLOMBIA S.A. E.S.PCarrera 9 # 7-25Neiva (Huila
(Colombia))
> >
> >
_________________________________________________________
> > Do You Yahoo!?
> > Obtenga su direcci'n de correo-e gratis @yahoo.com
> > en http://correo.espanol.yahoo.com
>
>
Sent via Deja.com http://www.deja.com/
Before you buy.