BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FastReport Dot Matrix with Large Fonts

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Tue Nov 07, 2006 6:54 am    Post subject: FastReport Dot Matrix with Large Fonts Reply with quote



I finally got FastReport 2.5 to do fast printing on dot matrix
printers. The only problem now is that I need to have one field in
LARGE font (invoice number).. The only option to change font is in
FontStyle property of the memo field, but there is no way to actually
set the font size.. I tried setting it to fsxWide, 12cpi, fsxCondensed
to False, but it prints with the same font as all the rest (which are
set as Condensed)..

I know it's possible to do this on dot matrix because I saw a report
made in Access 2003 that did just that...

Any help will be gretaly appreciated!!
Back to top
Alexander Tzyganenko
Guest





PostPosted: Tue Nov 07, 2006 9:12 am    Post subject: Re: FastReport Dot Matrix with Large Fonts Reply with quote



Probably you are talking about FR3.0 or 4.0 since 2.5 does not support
dot-matrix printing.
Standard commands available in designer don't include large fonts. You need
to use TfrxDmpCommand object if you want to insert esc-code in the report.
Put this object before the memo which you want to show large, set the
Command property of this object to esc-command (available forms of command
are decimal #27#40 or hexadecimal 1B28). After a memo, put another
DMPCommand object to turn large font off.
Back to top
Guest






PostPosted: Fri Nov 10, 2006 9:12 am    Post subject: Re: FastReport Dot Matrix with Large Fonts Reply with quote



Alexander Tzyganenko wrote:
Quote:
Probably you are talking about FR3.0 or 4.0 since 2.5 does not support
dot-matrix printing.
Standard commands available in designer don't include large fonts. You need
to use TfrxDmpCommand object if you want to insert esc-code in the report.
Put this object before the memo which you want to show large, set the
Command property of this object to esc-command (available forms of command
are decimal #27#40 or hexadecimal 1B28). After a memo, put another
DMPCommand object to turn large font off.


You're right.. I'm actually using FastReport 3.2.. not 2.5..!

I have no idea how to use ESC codes... I found this explanation:

*****************************************************
ESC X m n


This sends both pitch and point sizes:


m specifies the pitch in 360/n chars per inch. The acceptable
values
are: 0, 1, 18, 21, 24, 30, 36, 42, 48, 60, 72


m=0 means no change in pitch
m=1 means standard proportional (same as ESC p 1)
m=anything else sets a fixed pitch at 360/m chars/inch.
(eg pica = 10 chars/inch = 36)


n sets the point size in half-points. Acceptable values are: 0, 16,

20, 21, 24, 28, 32, 36, 40, 42, 48, 52, 56, 60, 64 for Roman, Sans

Serif, Roman T, and Sans Serif H. Other typefaces can take only
0, 21, 42. Notice that n=21 gives 10.5 points, which is
standard for normal type and 42 gives 21 points, which is probably

right for double height.


It takes two numbers to send it, n1 n2.


n1 is n modulo 256
n2 is n div 256.
That is, n = n1 + (n2 x 256). Programmers will notice that
this amounts to sending n as a word value.


n=0 (that is n1=0 n2=0) means "no change in point size"


The point of those 0=no change commands is to let you send pitch and
points separately. You can send a change in pitch only with


ESC X m 0 0


and a change in point size only with


ESC X 0 n1 n2


These limits and typeface options apply to the LQ-570+ and may, of
course, be different for other printers. It seems odd that the point
size specification takes only byte-size values (essentially, all the
allowable point size numbers fit in n1, while n2 is _always_ 0) though
Epson has gone to the trouble of specifying n1 and n2. I suppose
they're allowing for much larger fonts in future printers.

*****************************************************

I just want a large font..!!! something like 16 pt 12 cpi... do you
know what I'm supposed to put in the Command property?? How do I put an
X there (as in ESC X)..??? and how do I turn the large font off?

And you said to put TfrxDmpCommand object before the memo.. What do you
mean by "before"?? do you mean on the left side of memo?? above it??

All this seems so confusing! I hope you can help me!
Back to top
Guest






PostPosted: Tue Nov 14, 2006 9:12 am    Post subject: Re: FastReport Dot Matrix with Large Fonts Reply with quote

Does anyone know how to do this?


jloriena (AT) hotpop (DOT) com wrote:
Quote:
Alexander Tzyganenko wrote:
Probably you are talking about FR3.0 or 4.0 since 2.5 does not support
dot-matrix printing.
Standard commands available in designer don't include large fonts. You need
to use TfrxDmpCommand object if you want to insert esc-code in the report.
Put this object before the memo which you want to show large, set the
Command property of this object to esc-command (available forms of command
are decimal #27#40 or hexadecimal 1B28). After a memo, put another
DMPCommand object to turn large font off.


You're right.. I'm actually using FastReport 3.2.. not 2.5..!

I have no idea how to use ESC codes... I found this explanation:

*****************************************************
ESC X m n


This sends both pitch and point sizes:


m specifies the pitch in 360/n chars per inch. The acceptable
values
are: 0, 1, 18, 21, 24, 30, 36, 42, 48, 60, 72


m=0 means no change in pitch
m=1 means standard proportional (same as ESC p 1)
m=anything else sets a fixed pitch at 360/m chars/inch.
(eg pica = 10 chars/inch = 36)


n sets the point size in half-points. Acceptable values are: 0, 16,

20, 21, 24, 28, 32, 36, 40, 42, 48, 52, 56, 60, 64 for Roman, Sans

Serif, Roman T, and Sans Serif H. Other typefaces can take only
0, 21, 42. Notice that n=21 gives 10.5 points, which is
standard for normal type and 42 gives 21 points, which is probably

right for double height.


It takes two numbers to send it, n1 n2.


n1 is n modulo 256
n2 is n div 256.
That is, n = n1 + (n2 x 256). Programmers will notice that
this amounts to sending n as a word value.


n=0 (that is n1=0 n2=0) means "no change in point size"


The point of those 0=no change commands is to let you send pitch and
points separately. You can send a change in pitch only with


ESC X m 0 0


and a change in point size only with


ESC X 0 n1 n2


These limits and typeface options apply to the LQ-570+ and may, of
course, be different for other printers. It seems odd that the point
size specification takes only byte-size values (essentially, all the
allowable point size numbers fit in n1, while n2 is _always_ 0) though
Epson has gone to the trouble of specifying n1 and n2. I suppose
they're allowing for much larger fonts in future printers.

*****************************************************

I just want a large font..!!! something like 16 pt 12 cpi... do you
know what I'm supposed to put in the Command property?? How do I put an
X there (as in ESC X)..??? and how do I turn the large font off?

And you said to put TfrxDmpCommand object before the memo.. What do you
mean by "before"?? do you mean on the left side of memo?? above it??

All this seems so confusing! I hope you can help me!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.