We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

ContentType for Apose

I am attempting to render a report using the Apose txt. The report works on the report server and if I call ContentType = "application\pdf", however, it renders a gobble gook text file if I use "text\plain" with extention .txt . Can you help? the code is below

Response.ContentType = "text\plain";

strExt = ".txt"

strReportName = "/GLP Reports/FormNPX_Txt";

Response.AddHeader ("content-disposition",

"attachment; filename=\"" + strFileName[2] + strExt + "\"");

//GenerateReport Function




Answered via email.