GrapeCity.ActiveReports.Export.Word.Section.RtfExport word = new GrapeCity.ActiveReports.Export.Word.Section.RtfExport();
System.IO.MemoryStream memStream = new System.IO.MemoryStream();
Response.ContentType = "application/rtf";
if (!string.IsNullOrEmpty(ls_memonofrom))
{
Response.AppendHeader("Content-Disposition", "inline;filename=" + ls_memonofrom + ".doc");
}
else
{
Response.AddHeader("content-disposition", "inline; filename=tenantcfmletter.doc");
}
System.Threading.Thread.Sleep(200);
word.Export(docCurrent, memStream);
Response.BinaryWrite(memStream.ToArray());
Response.End(); |
|