Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to generate MS-Excel file using ASP web application?
    primarykey
    data
    text
    <p>As per my application I need to generate Excel files.</p> <p>I am able to generate excel files with:</p> <p>Response.ContentType = "application/vnd.ms-excel" in header and populating data by creating HTML Table.</p> <p>But while trying to create a file fetching it from server location and saving data into it(here we are creating excel object to generate file), the web page opens with <strong>DONE</strong> status with blank page and the source file shows data in HTML format. Where as I try to open the file explicitly using the path I am getting the following errors:</p> <p>it shows multiple errors like as follows: Note: ( MS-Excel DLL) is installed in the Server location.</p> <p><strong>Error message-1:</strong> Macros may contain viruses. It is usually safe to disable macros, but if the macros are legitimate, you might lose some functionality. <strong>Note: There is no macro present in the file</strong> On Clicking Enable Macros gets the second Error message:</p> <p>The file could not be accessed. Try one of the following:</p> <ol> <li>Make sure the specified folder exists. </li> <li>Make sure the folder that contains the file is not read-only.</li> <li>Make sure the file name does not contain any of the following characters &lt; > ? [ ] : | or *</li> <li>Make sure the file/path name doesn't contain more than 218 characters.</li> </ol> <p>Note: All of the above conditions holds true.</p> <p><strong>And finally on clicking ok it shows the error message:</strong></p> <p>This file is not in a recognizable format.</p> <p>Then it opens with encrypted format.</p> <p>Could anyone let me know what could be the problem?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload