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 / June 2006

Tip: Looking for answers? Try searching our database.

Printing client side

Thread view: 
VisionSet - 13 Jun 2006 15:44 GMT
I am tasked with adding some client side printing functionallity to a
web app.  At present Jasper is used serverside to create a pdf which is
exported via jasper to the client.  I think Jasper has its own servlet
code to do this. So I have a pdf opening on the client from a url
response.  What is a good way to grab this url and print from it?  I
guess I need to add an applet?

TIA,
Mike W
Oliver Wong - 13 Jun 2006 16:52 GMT
>I am tasked with adding some client side printing functionallity to a
> web app.  At present Jasper is used serverside to create a pdf which is
> exported via jasper to the client.  I think Jasper has its own servlet
> code to do this. So I have a pdf opening on the client from a url
> response.  What is a good way to grab this url and print from it?  I
> guess I need to add an applet?

   When you send the PDF to the client, typically the client will start up
Adobe Acrobat Reader and load the PDF document into the reader. The reader
has built in printing functionality. Why can't you use this built in
functionality directly?

   - Oliver
VisionSet - 13 Jun 2006 17:04 GMT
> >I am tasked with adding some client side printing functionallity to a
> > web app.  At present Jasper is used serverside to create a pdf which is
[quoted text clipped - 7 lines]
> has built in printing functionality. Why can't you use this built in
> functionality directly?

Because the client doesn't want to press the print button in the
browser and again in adobe.

--
Mike W
Oliver Wong - 13 Jun 2006 17:29 GMT
>> >I am tasked with adding some client side printing functionallity to a
>> > web app.  At present Jasper is used serverside to create a pdf which is
[quoted text clipped - 12 lines]
> Because the client doesn't want to press the print button in the
> browser and again in adobe.

   Could you use a psychological fix instead of a technical one? E.g.
rename the link from "print" to "printer friendly version"?

   - Oliver
VisionSet - 14 Jun 2006 13:52 GMT
> >> >I am tasked with adding some client side printing functionallity to a
> >> > web app.  At present Jasper is used serverside to create a pdf which is
[quoted text clipped - 15 lines]
>     Could you use a psychological fix instead of a technical one? E.g.
> rename the link from "print" to "printer friendly version"?

No, I think it will have to be an applet solution?

--
MIke W
Oliver Wong - 14 Jun 2006 14:54 GMT
>> >> >I am tasked with adding some client side printing functionallity to a
>> >> > web app.  At present Jasper is used serverside to create a pdf which
[quoted text clipped - 20 lines]
>
> No, I think it will have to be an applet solution?

   I only see two ways of proceeding, both of which are difficult:

   (1) Sign your applet. Do a screen capture, and use AI to determine where
on the screen (i.e. what pixel coordinates) Adobe Acrobat Reader is running
and where the print button is, and use Robot to generate a mouse click on
the Print button.

   (2) Write your own PDF parser and viewer applet, and add printing
functionality.

   - Oliver
VisionSet - 14 Jun 2006 15:34 GMT
> > No, I think it will have to be an applet solution?
>
[quoted text clipped - 9 lines]
>
>     - Oliver

Well the applet can easily get the pdf from the url (applet parameter),
and Jasper I'm hoping can print pdf's.
Do you see anything I might have overlooked with this seemingly simple
solution?

--
Mike W
Oliver Wong - 14 Jun 2006 16:03 GMT
>> > No, I think it will have to be an applet solution?
>>
[quoted text clipped - 16 lines]
> Do you see anything I might have overlooked with this seemingly simple
> solution?

   I thought Jasper could only export PDF, not import it as well.

   - Oliver


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



©2009 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.