I have it working (for a unrelated project):

System.IO.FileInfo f = new System.IO.FileInfo(strFilename);
Response.Clear();
Response.AddHeader("Content-Length", f.Length.ToString());
Response.AddHeader("Content-Disposition", "attachment; filename=" + System.IO.Path.GetFilename(strFilename) + ";size=" f.Length.ToString());

... code to read from file and write to Response.OutputStream ....

The length stuff enables the progressbar in IE or FF.

Regards, Kenneth, GEOGRAF A/S



Jackie Ng skrev:
Yes it was a typo in my code (doh!)

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

- Jackie


JasonBirch wrote:
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
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users



_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to