![]() |
Problem while opening Excel files
Hi friends
when i try to download data from MySQL to excel sheet I am getting error of This file is not in a recognizable format. . If you know the file is from another program which is incompatible with Microsoft Office Excel,click Cancel then open this file in its original application.If you want to open the file later in Microsoft Office Excel,save it in a format that is compatible,such as text format. etc Code is Code:
Class.forName("org.gjt.mm.mysql.Driver");response.setContentType("application/vnd.ms-excel"); response.setHeader("Content-Disposition", "attachment; filename=\"test.XLS\""); I can open them after clicking OK, but before that it is showing the above error message thank you |
| All times are GMT +5.5. The time now is 07:45. |