Hi!<br><br>To return a csv file which is opened by excel we are using the following code.<br>It should be implemented in WASession or in a subclass.<br><br>respondContent: aContentString ofMimeType: aTypeString fileName: aName<br>
"Return a response with given string as content that is of passed mime type"<br><br> self returnResponse: (WAResponse document: aContentString mimeType: aTypeString fileName: aName)<br><br>br<br>Gerhard<br>
<br><br><div class="gmail_quote">On Thu, Jun 26, 2008 at 1:56 PM, Diogenes Moreira <<a href="mailto:diogenes.moreira@gmail.com">diogenes.moreira@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
yes, but how obtein my WAReponse Instance,<br><br>sorry i'm newby.<br><br>Thanks...<div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Thu, Jun 26, 2008 at 2:05 AM, Philippe Marschall <<a href="mailto:philippe.marschall@gmail.com" target="_blank">philippe.marschall@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">2008/6/26 Diogenes Moreira <<a href="mailto:diogenes.moreira@gmail.com" target="_blank">diogenes.moreira@gmail.com</a>>:<br>
<div>> Hi my folk,<br>
><br>
> I need set the http header of a component.<br>
><br>
> in another lenguage i can set liki this<br>
><br>
> Response.AddHeadder ("content-type", "application/xls")<br>
><br>
> But im don't how set this property in the commanche response.<br>
<br>
</div>You don't mess around with Comanche. You send #contentType:<br>
'application/xls' to your instance of WAResponse.<br>
<br>
Cheers<br>
Philippe<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</blockquote></div><br>
</div></div><br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br>