Re: Printing dynamic WOImage with IE
Re: Printing dynamic WOImage with IE
- Subject: Re: Printing dynamic WOImage with IE
- From: Chuck Hill <email@hidden>
- Date: Tue, 14 Aug 2007 08:39:11 -0700
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%
20Explorer cannot download&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:
This email sent to email@hidden