F
Fh
Hello,
I'm using the following code to send the content of a report directly in a
aspx page.
this code is working fine,
but the pb is that it doesn't fill the page with the document.
it displays automatically the 'open or save' popup...
I wish to open it directly in the IE window without asking anything?
how can I do so?
Thanks for your help
----------------code---------------------
docReport.ExportOptions.ExportFormatType =
ExportFormatType.WordForWindows;
MemoryStream m_stream = new MemoryStream();
m_stream =
(MemoryStream)docReport.ExportToStream(
CrystalDecisions.Shared.ExportFormatType.WordForWindows);
Response.Clear();
Response.AddHeader("content-disposition",
"attachment;filename=FileName.doc");
Response.Charset = "";
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.ContentType = "application/vnd.word";
Response.BinaryWrite(m_stream.ToArray());
Response.End();
I'm using the following code to send the content of a report directly in a
aspx page.
this code is working fine,
but the pb is that it doesn't fill the page with the document.
it displays automatically the 'open or save' popup...
I wish to open it directly in the IE window without asking anything?
how can I do so?
Thanks for your help
----------------code---------------------
docReport.ExportOptions.ExportFormatType =
ExportFormatType.WordForWindows;
MemoryStream m_stream = new MemoryStream();
m_stream =
(MemoryStream)docReport.ExportToStream(
CrystalDecisions.Shared.ExportFormatType.WordForWindows);
Response.Clear();
Response.AddHeader("content-disposition",
"attachment;filename=FileName.doc");
Response.Charset = "";
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.ContentType = "application/vnd.word";
Response.BinaryWrite(m_stream.ToArray());
Response.End();