atehewhsupp
New Member
I use this code to export/open files (pdf/xls/doc).\[code\]Response.Clear();Response.Buffer = true;Response.ContentEncoding = System.Text.Encoding.UTF8;Response.Charset = "UTF-8";Response.ContentType = mimeType;Response.AppendHeader("content-disposition", "inline; filename=" + fileName + "." + extension);Response.BinaryWrite(bytes);Response.End();\[/code\]When I open a doc file with Word and click export to xls or pdf, nothing happens until I close Word.After I close Word I am already able to open xls and pdf too.This problem exists when I open xls with Excel.What is the reason?