Maybe I don't fully understand your project but I wouldn't use that
approach.
I would be inclined to either

(1) Accept that I had to use an applet.  Then use either Java2D for the
applet
    plug-in or AWT for the browser's JVM.  This would be easier and more
scalable
    than generating the images on the server.  KL Group and maybe others
have
    charting API's to make fancy charts.  Saving the report may be hard
in this
    case.
or
(2) Not accept that I had to use an applet.  Do everything on the
server, including
    generating images and generating a pdf with the images included.
This needs
    some more specialized programming skills and may be harder but some
people just
    do not like applets.

Personally, I like applets and (1) sounds easier but there is no need to
generate the
images on the server for that.

-----Original Message-----
From: David M. Karr [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 1:48 PM
To: [EMAIL PROTECTED]
Subject: Re: Opinion: JPEG from SVG -> applet with hidden panel ->
print?


>>>>> "Alex" == Alex Amies <[EMAIL PROTECTED]> writes:
  Alex> I guess you want drawings or charts.  Normally, when I think of
reports
  Alex> I
  Alex> think of long tables.  We are using apache FOP to produce pdf's
for
  Alex> that.
  Alex> I think that using a codec to produce gif's or png's would come
out
  Alex> better
  Alex> for report-type images than jpg's.  You can get a gif codec at
  Alex> www.acme.com.  The problem with using images embedded in html is
that
  Alex> users
  Alex> cannot save without saving all the embedded images, Javascript,
and CSS.

I realized that PNGs would probably be better, assuming everything in
my tool chain can handle them.

My reports are essentially report cards, with very minimal graphics,
some minor font variations, several tables with headers, perhaps some
different colored rows, etcetera.  Each card will print on a single
page, but a "print job" will most likely require printing all the
cards for a single class.

I'm hoping that I can have an "invisible" applet in the browser (using
the plugin) which will receive the PNG from a servlet, and then render
it in a hidden panel with Java2D and the print API.

--
===================================================================
David M. Karr     ; w:(425)487-8312     ; TCSI & Best Consulting
[EMAIL PROTECTED]    ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)

________________________________________________________________________
___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to