You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rafael Taboada <ka...@gmail.com> on 2005/07/06 19:34:48 UTC

Printing Bills

Hi folks, i'm developing a project in struts, this project is about selling 
management.
 When the user selects some articles in order to sell them, there is a 
module with the client name and the articles list.
 I need to print that object: the bill. I'm in a hurry and I need ur 
experience in this kind of things.
 Do u know how to print bills? I mean, it has to have a format because we'll 
print in a piece of paper which it has a specific place for the client name 
and a specific place for the list of articles with its prices and quantity. 
So I don't know how to do this. Please could u share ur experience?
 Perhaps, is there any project about this?.
 Thanks in advance

-- 
Rafael Taboada
Software Engineer

Cell : +511-97753290

"No creo en el destino pues no me gusta tener la idea de controlar mi vida"

Re: Printing Bills

Posted by Brad Balmer <bb...@peapod.com>.
Look at jasper for creating a pdf.

Rafael Taboada wrote:

>Hi folks, i'm developing a project in struts, this project is about selling 
>management.
> When the user selects some articles in order to sell them, there is a 
>module with the client name and the articles list.
> I need to print that object: the bill. I'm in a hurry and I need ur 
>experience in this kind of things.
> Do u know how to print bills? I mean, it has to have a format because we'll 
>print in a piece of paper which it has a specific place for the client name 
>and a specific place for the list of articles with its prices and quantity. 
>So I don't know how to do this. Please could u share ur experience?
> Perhaps, is there any project about this?.
> Thanks in advance
>
>  
>


Re: Printing Bills

Posted by Michael Jouravlev <jm...@gmail.com>.
On 7/6/05, Aleksandar Matijaca <am...@gmail.com> wrote:
> PDF is definitely the way to go.... 

I would not say that pdf is "definitely the way to go". CSS with
"print" media type and points or cm or inches for units (not pixels)
should work quite well.

Michael.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Printing Bills

Posted by Ovidiu EFTIMIE <eo...@gmail.com>.
The simplest way to go is to generate RTF with this .
http://javaby.sourceforge.net/.
At least this is what I'm using for quite some time and it works pretty well.

Ovidiu

On 7/6/05, Aleksandar Matijaca <am...@gmail.com> wrote:
> Interesting, we didn't have that problem at all. I just wish that there was
> a better way of
> including graphic objects that were created -on-the-fly...
> 
> Regards, Alex.
> 
> 
> On 7/6/05, Nick Heudecker <nh...@gmail.com> wrote:
> >
> > I would either use JasperReports to create a simple report definition,
> > or use IText to create the PDF. When we tried to use FOP, we had to
> > embed the fonts which resulted in HUGE PDFs.
> >
> > On 7/6/05, Martin Gainty <mg...@hotmail.com> wrote:
> > > Rafael
> > >
> > > Now I understand..
> > > You can use Crystal Reports to pretty print using cascading style
> > > stylesheets for formatting but if you want hardcopy used by most of the
> > > agencies of the US I would output to PDF
> > > Saludos Cordiales!
> > >
> > > Martin-
> > >
> > > ----- Original Message -----
> > > From: "Rafael Taboada" <ka...@gmail.com>
> > > To: "Struts List" <us...@struts.apache.org>
> > > Sent: Wednesday, July 06, 2005 2:13 PM
> > > Subject: Re: Printing Bills
> > >
> > >
> > > So aren't there any other way that PDF?
> > >
> > >
> > > --
> > > Rafael Taboada
> > > Software Engineer
> > >
> > > Cell : +511-97753290
> > >
> > > "No creo en el destino pues no me gusta tener la idea de controlar mi
> > vida"
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Printing Bills

Posted by Aleksandar Matijaca <am...@gmail.com>.
Interesting, we didn't have that problem at all. I just wish that there was 
a better way of
including graphic objects that were created -on-the-fly...

Regards, Alex.


On 7/6/05, Nick Heudecker <nh...@gmail.com> wrote:
> 
> I would either use JasperReports to create a simple report definition,
> or use IText to create the PDF. When we tried to use FOP, we had to
> embed the fonts which resulted in HUGE PDFs.
> 
> On 7/6/05, Martin Gainty <mg...@hotmail.com> wrote:
> > Rafael
> >
> > Now I understand..
> > You can use Crystal Reports to pretty print using cascading style
> > stylesheets for formatting but if you want hardcopy used by most of the
> > agencies of the US I would output to PDF
> > Saludos Cordiales!
> >
> > Martin-
> >
> > ----- Original Message -----
> > From: "Rafael Taboada" <ka...@gmail.com>
> > To: "Struts List" <us...@struts.apache.org>
> > Sent: Wednesday, July 06, 2005 2:13 PM
> > Subject: Re: Printing Bills
> >
> >
> > So aren't there any other way that PDF?
> >
> >
> > --
> > Rafael Taboada
> > Software Engineer
> >
> > Cell : +511-97753290
> >
> > "No creo en el destino pues no me gusta tener la idea de controlar mi 
> vida"
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
>

Re: Printing Bills

Posted by Nick Heudecker <nh...@gmail.com>.
I would either use JasperReports to create a simple report definition,
or use IText to create the PDF.  When we tried to use FOP, we had to
embed the fonts which resulted in HUGE PDFs.

On 7/6/05, Martin Gainty <mg...@hotmail.com> wrote:
> Rafael
> 
> Now I understand..
> You can use Crystal Reports to pretty print using cascading style
> stylesheets for formatting but if you want hardcopy used by most of the
> agencies of the US I would output to PDF
> Saludos Cordiales!
> 
> Martin-
> 
> ----- Original Message -----
> From: "Rafael Taboada" <ka...@gmail.com>
> To: "Struts List" <us...@struts.apache.org>
> Sent: Wednesday, July 06, 2005 2:13 PM
> Subject: Re: Printing Bills
> 
> 
> So aren't there any other way that PDF?
> 
> 
> --
> Rafael Taboada
> Software Engineer
> 
> Cell : +511-97753290
> 
> "No creo en el destino pues no me gusta tener la idea de controlar mi vida"
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Printing Bills

Posted by Martin Gainty <mg...@hotmail.com>.
Rafael

Now I understand..
You can use Crystal Reports to pretty print using cascading style 
stylesheets for formatting but if you want hardcopy used by most of the 
agencies of the US I would output to PDF
Saludos Cordiales!

Martin-

----- Original Message ----- 
From: "Rafael Taboada" <ka...@gmail.com>
To: "Struts List" <us...@struts.apache.org>
Sent: Wednesday, July 06, 2005 2:13 PM
Subject: Re: Printing Bills


So aren't there any other way that PDF?


-- 
Rafael Taboada
Software Engineer

Cell : +511-97753290

"No creo en el destino pues no me gusta tener la idea de controlar mi vida"

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Printing Bills

Posted by Aleksandar Matijaca <am...@gmail.com>.
There are a number of commercial products out there -- the products I 
outlined to you are open source, except the altova
product... This is actualy much simpler then it seems Rafael -- have look at 
FOP...

Regards, Alex.


On 7/6/05, Rafael Taboada <ka...@gmail.com> wrote:
> 
> So aren't there any other way that PDF?
> 
> 
> --
> Rafael Taboada
> Software Engineer
> 
> Cell : +511-97753290
> 
> "No creo en el destino pues no me gusta tener la idea de controlar mi 
> vida"
> 
>

Re: Printing Bills

Posted by Rafael Taboada <ka...@gmail.com>.
So aren't there any other way that PDF?


-- 
Rafael Taboada
Software Engineer

Cell : +511-97753290

"No creo en el destino pues no me gusta tener la idea de controlar mi vida"

Re: Printing Bills

Posted by Aleksandar Matijaca <am...@gmail.com>.
PDF is definitely the way to go.... While not strictly a struts thing -- the 
way to do it in my opinion is:

text from the article ---> XML (data from the article in XML format) ---> 
create an XSL:FO file using
some kind of a tool ( http://altova.com/ ) has demo software you can try for 
this --> XSL:FO + XML + FOP ( http://xml.apache.org/fop/ ) --> PDF !!!

Lickity split, 2 weeks of work or so...

Cheers, Alex.



On 7/6/05, Rafael Taboada <ka...@gmail.com> wrote:
> 
> Hi folks, i'm developing a project in struts, this project is about 
> selling
> management.
> When the user selects some articles in order to sell them, there is a
> module with the client name and the articles list.
> I need to print that object: the bill. I'm in a hurry and I need ur
> experience in this kind of things.
> Do u know how to print bills? I mean, it has to have a format because 
> we'll
> print in a piece of paper which it has a specific place for the client 
> name
> and a specific place for the list of articles with its prices and 
> quantity.
> So I don't know how to do this. Please could u share ur experience?
> Perhaps, is there any project about this?.
> Thanks in advance
> 
> --
> Rafael Taboada
> Software Engineer
> 
> Cell : +511-97753290
> 
> "No creo en el destino pues no me gusta tener la idea de controlar mi 
> vida"
> 
>