For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > June 2007 > Formats for invoices.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Formats for invoices.
Francisco Valladolid

2007-06-28, 9:58 pm

Hi Folks

I'm doing a single perl script to get data from a database (SQLlite), and
want put some data in a format
The output format is record in a simple temporary .txt file and send to
lpr.

the format is for a invoice displaying most important data.

I have the next questions.

1.- How can put lines containing products descriptions ?
2.- Ho can justify or align a variable into format ?

if any people can help me, it will be appreciated.

Regards.



--
Francisco Valladolid H.
-- http://bsdguy.net - Perl, [Open-Net] BSD fan. --

Tom Phoenix

2007-06-28, 9:58 pm

On 6/28/07, Francisco Valladolid <ficovh@gmail.com> wrote:

> 1.- How can put lines containing products descriptions ?
> 2.- Ho can justify or align a variable into format ?


Have you seen the perlform manpage?

http://perldoc.perl.org/perlform.html

Hope this helps!

--Tom Phoenix
Stonehenge Perl Training
Chas Owens

2007-06-28, 9:58 pm

On 6/28/07, Tom Phoenix <tom@stonehenge.com> wrote:
> On 6/28/07, Francisco Valladolid <ficovh@gmail.com> wrote:
>
>
> Have you seen the perlform manpage?
>
> http://perldoc.perl.org/perlform.html

snip

Or better yet, the new style forms from Perl 6 backported to Perl 5:

http://search.cpan.org/~dconway/Perl6-Form-0.04/Form.pm
Daniel Kasak

2007-06-28, 9:58 pm

On Thu, 2007-06-28 at 17:24 -0700, Tom Phoenix wrote:

> On 6/28/07, Francisco Valladolid <ficovh@gmail.com> wrote:
>
>
> Have you seen the perlform manpage?
>
> http://perldoc.perl.org/perlform.html
>
> Hope this helps!


Also check out PDF::ReportWriter:
http://entropy.homelinux.org/axis


--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: dkasak@nusconsulting.com.au
website: http://www.nusconsulting.com.au

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com