Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

How to print invoice (text based) from JSP/JSF ?

Thread view: 
xtanto@hotmail.com - 20 Jul 2006 16:58 GMT
Hi All,

I am developing a web based application with JSF/JSP. There is a
requirement to print Invoice on a dot matrix printer from the
application .

I can do that with Crystal XI but Java Report Component can only export
to PDF or RTF, but the size of the report is too big for our narrow
bandwidth.

So I am looking for a way to produced an Invoice to print in Text
based. How can I do that ?

Thank you for your help,
xtanto
Mark Space - 20 Jul 2006 17:17 GMT
> Hi All,
>
[quoted text clipped - 11 lines]
> Thank you for your help,
> xtanto

If you have an executing JSP script, can't you just stream the report to
a file or to a printing service like lpr?  Then let the print subsystem
deal with printing or transmission over a slow link.

If you're asking for an automagic way of doing this, sorry, I don't know.

Hmm, if you print to RTF, then use a (local) JSP or Java app to remove
all the formatting, images, etc., would you have what you want?  Just a
thought.  Java does have an HTML/XML parser that would be useful reading
an RTF file, I think.
Andrew Thompson - 20 Jul 2006 19:23 GMT
...
> I am developing a web based application with JSF/JSP. There is a
> requirement to print Invoice on a dot matrix printer from the
> application .

At where?  The client's place, or yours?

> I can do that with Crystal XI but Java Report Component can only export
> to PDF or RTF, but the size of the report is too big for our narrow
> bandwidth.

That suggests 'the client'.  The usual method is to produce an
HTML page suitable for printing, and leave it to the user/client
to print it (or save it to disk).

OTOH, I cannot imagine that RTF with minimal formatting
would be much larger (in bytes) than the HTML.

Andrew T.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.