Tuesday, January 06, 2009

ASP.NET: Export PDF/Excel/Word file corrupted

An encounter with an error while trying to export the Crystal report to the abovementioned document format has resulted "file damaged" or "file corrupted". It was then later found I out that the response.write function requires an end at the end of sending the file content like below;


Your Ad Here