More Printing Questions

Frank D. Engel, Jr. fde101 at fjrhome.net
Tue Mar 15 09:31:28 EST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

revPrintText prints the text, not a field.  You assigned the font, etc. 
to the field, not the text.  Since the font was not specified in the 
text, it inherits it from the field, but when you use revPrintText, 
there is no field to inherit the font from.  Try replacing this:

> set the textFont of field "PrintLayout" to "Courier New"
> set the textSize of field "PrintLayout" to 10

with:

set the textFont of char 1 to -1 of field "PrintLayout" to "Courier New"
set the textSize of char 1 to -1 of field "PrintLayout" to 10

On Mar 15, 2005, at 9:12 AM, Karen wrote:

> set the htmlText of field "PrintLayout" to the htmlText of field "List
> Stocks"
> set the tabStops of field "PrintLayout" to 160,220,290
> set the textFont of field "PrintLayout" to "Courier New"
> set the textSize of field "PrintLayout" to 10
> set the printmargins to 36,72,36,72

> However, I like some of the header and footer features of 
> revPrintText.  I
> tried:
>
> revPrintText (the htmlText of field "PrintLayout"),"Stock Portfolio - 
> <%the
> internet date%>","Page <%pageNumber%> of <%numPages%>"
>
> instead of revPrintField, but the text doesn't use the font that I 
> specified
> in textFont.  Am I doing something wrong, or is this a limitation of
> revPrintText?  The documentation says that you can print formatted text
> through revPrintText...
- -----------------------------------------------------------
Frank D. Engel, Jr.  <fde101 at fjrhome.net>

$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCNvHB7aqtWrR9cZoRAkuXAJ9eqYco2o7IJgvhQMM74Mw9GR610wCeNUNi
MEFaHwuKp3Y9WaXuyz4cmXM=
=GoLd
-----END PGP SIGNATURE-----



___________________________________________________________
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com



More information about the use-livecode mailing list