[Zope] problem with Zope and IE and ReportLab

Jerome Alet alet@unice.fr
Wed, 14 Mar 2001 15:54:44 +0100 (MET)


On Wed, 14 Mar 2001, Oliver Bleutgen wrote:

> Jerome Alet <alet@unice.fr> wrote
> > --- CUT ---
> > <dtml-call "RESPONSE.setHeader('Content-Type', 'application/pdf')">
> > <dtml-call "RESPONSE.setHeader('Content-Disposition', 'attachment;
> > filename=rapport.pdf')">
> > <dtml-var rpdf>
> > --- CUT ---
> 
> Hmm, IIRC the Content-Disposition should force a download dialog,
> i.e. disable automatic launching of attachments - that is at least the 
> way I always use it.
> 
> > When viewed under Internet Explorer 5.0 under Windows NT 4 (sp5), the
> > dialog box opens but IE tells me it can't download the file.
>
> Have you tried the same without this header?

No, but I'll try that ASAP.
 
> At least I can tell you that I have used reportlab to generate PDFs for 
> IE 5 successfully.

So did I, but from pure python CGI scripts, not from within Zope.

thanks for the help.

Jerome Alet - alet@unice.fr - http://cortex.unice.fr/~jerome
Fac de Medecine de Nice        http://wwwmed.unice.fr 
Tel: (+33) 4 93 37 76 30     Fax: (+33) 4 93 53 15 15
28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE