Screen Printing

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Screen Printing

Bruce A. Peaslee-2
I have a little program that does some computations. I want the user
to see the data and the calculations. I'm using a list box and create
strings for printing there as I move through the calculations. (If
there's a better way, I'm interested - printing seems to be so
difficult in this system - we need a tutorial just for that!).

Anyway, I use this statement:

self addCalculation: ('Workers Comp:  $ ' , totalWorkersCompensation
printString).

where addCalculation puts the string in the list box. This works, but
I can't figure out a way to format the dollar amounts so that
everything lines up. I want to amount to be $0000.00. I use a
monospaced font, so once I figure out the string creation part, all
will be right.

Thanks.


Reply | Threaded
Open this post in threaded view
|

Re: Screen Printing

Christopher J. Demers
Bruce A. Peaslee <[hidden email]> wrote in message
news:[hidden email]...
....
> self addCalculation: ('Workers Comp:  $ ' , totalWorkersCompensation
> printString).
>
> where addCalculation puts the string in the list box. This works, but
> I can't figure out a way to format the dollar amounts so that
> everything lines up. I want to amount to be $0000.00. I use a
> monospaced font, so once I figure out the string creation part, all
> will be right.

Check out Ian's Currency to Text converter.  It looks like it can do what
you need:
http://www.iandb.org.uk/tweaks.htm#currencyToText

Also in regard to printing from Dolphin, I have not yet done that myself,
but once again Ian has something that may be useful to you.  Take a look
here http://www.iandb.org.uk/goodies4/printer.htm .  You could print from an
RTF string.


Chris