[Zope] HOW: Attach spreadsheet in zope app?

Dieter Fischer dieter.fischer@grid-it.ch
Wed, 27 Nov 2002 10:31:59 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0009_01C29600.3775F940
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hello Mike

Just create a HTML-Header like this:

<HTML>
<HEAD>
<TITLE>Title</TITLE>
<dtml-call "RESPONSE.setHeader('Content-Type','application/vnd.ms-excel')">
</HEAD>
<BODY>
</BODY>
</HTML>

Regards

Dieter

  -----Original Message-----
  From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Michael
Guerrero
  Sent: Tuesday, November 26, 2002 11:14 PM
  To: zope@zope.org
  Subject: [Zope] HOW: Attach spreadsheet in zope app?


  I've created an application that allow a salesperson to enter sales
information for a perspective customer.  When the salespersons 'saves' the
information an email is sent to our financial analyst.  He then goes into
the application views the information then does some financial analysis in
excel.   I would then to create a button for the analyst called 'Attach
Analysis Results' that would browse the pc and allow the anlayst to attach
the spreadsheet.  The user would later log on and have a button called 'View
Analysis Results'.  That would allow them to view the spreadsheet.

  What is the best way to do this?  I have the Zope Bible but could not find
a good example.

  Thanks.

  Mike

------=_NextPart_000_0009_01C29600.3775F940
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1126" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D576292709-27112002><FONT face=3DArial color=3D#0000ff =
size=3D2>Hello=20
Mike</FONT></SPAN></DIV>
<DIV><SPAN class=3D576292709-27112002><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D576292709-27112002><FONT face=3DArial color=3D#0000ff =
size=3D2>Just=20
create a HTML-Header like this:</FONT></SPAN></DIV>
<DIV><SPAN class=3D576292709-27112002><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D576292709-27112002><FONT face=3DArial color=3D#0000ff =

size=3D2>&lt;HTML&gt;<BR>&lt;HEAD&gt;<BR>&lt;TITLE&gt;Title&lt;/TITLE&gt;=
<BR>&lt;dtml-call=20
"RESPONSE.setHeader('Content-Type','application/vnd.ms-excel')"&gt;<BR>&l=
t;/HEAD&gt;<BR>&lt;BODY&gt;<BR>&lt;/BODY&gt;<BR>&lt;/HTML&gt;<BR></FONT><=
/SPAN></DIV>
<DIV><SPAN class=3D576292709-27112002><FONT face=3DArial color=3D#0000ff =

size=3D2>Regards</FONT></SPAN></DIV>
<DIV><SPAN class=3D576292709-27112002><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D576292709-27112002><FONT face=3DArial color=3D#0000ff =

size=3D2>Dieter</FONT></SPAN></DIV>
<DIV><SPAN class=3D576292709-27112002><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader><FONT face=3D"Times New Roman"=20
  size=3D2>-----Original Message-----<BR><B>From:</B> =
zope-admin@zope.org=20
  [mailto:zope-admin@zope.org]<B>On Behalf Of</B> Michael=20
  Guerrero<BR><B>Sent:</B> Tuesday, November 26, 2002 11:14 =
PM<BR><B>To:</B>=20
  zope@zope.org<BR><B>Subject:</B> [Zope] HOW: Attach spreadsheet in =
zope=20
  app?<BR><BR></FONT></DIV>
  <DIV><SPAN class=3D315400122-26112002><FONT face=3DArial size=3D2>I've =
created an=20
  application that allow a salesperson to enter sales information for a=20
  perspective customer.&nbsp; When the salespersons 'saves' the =
information an=20
  email is sent to our financial analyst.&nbsp; He then goes into the=20
  application views the information then does some financial analysis in =

  excel.&nbsp;&nbsp; I would then to create a button for the analyst =
called=20
  'Attach Analysis Results' that would browse the pc and allow the =
anlayst to=20
  attach the spreadsheet.&nbsp; The user would later log on and have a =
button=20
  called 'View Analysis Results'.&nbsp; That would allow them to view =
the=20
  spreadsheet.</FONT></SPAN></DIV>
  <DIV><SPAN class=3D315400122-26112002><FONT face=3DArial=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D315400122-26112002><FONT face=3DArial size=3D2>What =
is the best=20
  way to do this?&nbsp; I have the Zope Bible but could not find a good=20
  example.</FONT></SPAN></DIV>
  <DIV><SPAN class=3D315400122-26112002><FONT face=3DArial=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D315400122-26112002><FONT face=3DArial=20
  size=3D2>Thanks.</FONT></SPAN></DIV>
  <DIV><SPAN class=3D315400122-26112002><FONT face=3DArial=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D315400122-26112002><FONT face=3DArial=20
  size=3D2>Mike</FONT></SPAN></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0009_01C29600.3775F940--