problem in viewing MHTML report when it is Exported

Hi, I am facing a different problem when MHTML report is exported, this happens in alternatve requests, but when I save the file report is proper.The only problem is when I click on Open button , it pops another dialouge with



Name: wbk3E.tmp
Type: HTML DOcument
From :mhtml:http://localhost/riq/web/UI/RunReports.aspx



wbk3E.tmp file is not displaying any report data, I am not getting what happens when I click on Open button..The same code is working on first request and its alternative requests fails to show the report...I don't have any problem with CSV and XML exports.



Please suggest me what is the problem in opening the report on Even open clicks. The below lines of code that renders the report.


try
{
Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
switch (_format)
{
case "MHTML":
Response.ContentType = "text/mhtml";
Response.AddHeader("Content-disposition", "attachment;filename=output.mhtml");
break;
}
Response.OutputStream.Write(m_bytes, 0, m_bytes.Length);
Response.OutputStream.Flush();
Response.OutputStream.Close();
Response.Flush();
Response.Close();
Response.End();
}

From http://www.developmentnow.com/g/8_0_0_0_0_0/dotnet-framework -aspnet.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com
Raghu [ Do, 10 April 2008 22:02 ] [ ID #1939416 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » problem in viewing MHTML report when it is Exported

Vorheriges Thema: ASP.NET MVC RouteTable question
Nächstes Thema: PerformanceCounterCategory.Create() takes 3 minutes to add a new category!! How come? What can cause