While exporting HTML in excel format you may encounter this error when opening the exported Excel file:
The file you are trying to open, ‘XXX.xls’ is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file.
This bug cannot be fixed through asp.net code. Here is more information on this problem:
If this app is running on an intranet and some specific computers is heavily using this export to excel feature, then we can suppress this warning notification by modifying the registry on each of the client computers as follows: [HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Excel\Security]“ExtensionHardening”=dword:00000000 1. Open your Registry (Start -> Run -> regedit.exe) 2. Navigate to HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\OFFICE\12.0\EXCEL\SECURITY 3. Right click in the right window and choose New -> DWORD 4. Type “ExtensionHardening” as the name (without the quotes) 5. Verify that the data has the value “0″
You may need to change the package name for your android application due to various reasons ranging from a small typo to duplicate domain name. Changing the package name ...
by: Ravi Rawal
If you are looking for dynamically adding different types of "Widgets" into your screen programatically and are also interested in placing them such that many items are v...
This blog teaches you to display line numbers in visual studio text editor.
by: Yukti Arora
This blog teaches you to switch themes in visual studio.
This blog will apply to those folks who use Photoshop for design. I will focus on the use of channels to make a perfect selection out of a very complex image. In this blo...
by: Atul Ahuja
Toast message is a way to provide some information to the user that stays on the screen for a couple of seconds. Here, we will be working on how to beautify that message ...
What kind of email newsletter would you prefer to receive from CodeAsp.Net?