<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I have it working (for a unrelated project):<br>
<br>
System.IO.FileInfo f = new System.IO.FileInfo(strFilename);<br>
Response.Clear();<br>
Response.AddHeader("Content-Length", f.Length.ToString());<br>
Response.AddHeader("Content-Disposition", "attachment; filename=" +
System.IO.Path.GetFilename(strFilename) + ";size=" f.Length.ToString());<br>
<br>
... code to read from file and write to Response.OutputStream ....<br>
<br>
The length stuff enables the progressbar in IE or FF.<br>
<pre class="moz-signature" cols="72">Regards, Kenneth, GEOGRAF A/S
</pre>
<br>
<br>
Jackie Ng skrev:
<blockquote cite="mid:13338706.post@talk.nabble.com" type="cite">
  <pre wrap="">Yes it was a typo in my code (doh!)

Unfortunately, fixing the typo still didn't fix the original problem.

- Jackie


JasonBirch wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi Jackie,
 
Is this copy/paste?
 
----------------------
 
Response.AppendHeader("content-disposition", "attachement;
filename=\"eplot.dwf\"");

----------------------
 
If so, I think you've got a typo in "attachment".
 
Jason
 

 
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>


    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
</body>
</html>