Re: Printing dynamic WOImage with IE
Re: Printing dynamic WOImage with IE
- Subject: Re: Printing dynamic WOImage with IE
- From: Jacob Mouka <email@hidden>
- Date: Thu, 16 Aug 2007 00:02:50 -0400
I vaguely remember running into this. I can't test it (no IE access
at the moment) but my old component has a name bound to the WOImage's
key attribute. I used a random number (eg 123.png) so that the cache
would be refreshed when the image gets updated. Chuck's suggestion
might work too, but if it doesn't, give this a try. If I understand
it correctly, if you don't bind the key attribute then the image has
to be re-fetched each time the page loads, and I guess IE goes back
to the source instead of looking in its cache for printing.
hope that helps, Jacob
On 14-Aug-07, at 11:39 AM, Chuck Hill wrote:
On Aug 14, 2007, at 7:35 AM, Frederic JECKER wrote:
Hi list,
I'm using a WOImage to print charts generated by JFreeChart.
This works fine and the generated charts are displayed on the
browsers.
Now when I try to print my page with IE (this works well) the
generated pictures are not printed.
I googled for a while without success, I just found some posts
mentionning cache/content-type issues :
if they are not set correctly IE performs a refresh of the picture
before printing (which is the cause of my problem)
I checked my page for a pragma no-cache in the header and set a
correct mime time in the WOImage bindings without success.
Anyone could help me with this issue ?
Here is one way. This goes in Application.java
// Revert to 4.5 behaviour. Having this enabled prevents
IE from displaying content that cannot
// be displayed inline in the browswer (pdf files, for
example). This was a known bug in IE 4.0
// and is reported fixed by MS: http://
support.microsoft.com/support/kb/articles/Q231/2/96.ASP?LN=EN-
US&SD=gn&FR=0&qry=Internet Explorer cannot%
20download&rnk=19&src=DHCS_MSPSS_gn_SRCH&SPR=IE
// "When you try to download a .pdf file from a Web site
that uses the Hypertext Transfer Protocol
// (HTTP) "Cache-Control = 'no-cache'" directive, Internet
Explorer may generate the following
// error message: Internet Explorer cannot down load from
the Internet site File_name from
// Computer_name.".
setPageRefreshOnBacktrackEnabled(false);
Chuck
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden