not enough memory to run excel 2013

Prateek

I have a MVC application that uses NPOI version:2.1.3.0 to read and write in excel file and user can download that excel file in their local machine. File format: xlsx.

public ActionResult NPOI()
    {
        FileStream fs = new FileStream(Server.MapPath(@"\Content\SampleExcel.xlsx"), FileMode.Open, FileAccess.Read);
        XSSFWorkbook templateWorkbook = new XSSFWorkbook(fs);
        ISheet sheet = (ISheet)templateWorkbook.GetSheet("Sheet1");
        IRow dataRow = (IRow)sheet.GetRow(1);
        dataRow.GetCell(0).SetCellValue(77);
        sheet.ForceFormulaRecalculation = true;
        MemoryStream ms = new MemoryStream();
        templateWorkbook.Write(ms);
        return File(ms.ToArray(), "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "SampleExcel.xlsx");
    }

Writing in excel file is working fine. But when browser is IE and excel 2013 in user machine.

If after downloads completes user uses IE open(preview file) option is selected: IE Open option

Then in excel 2013 this error is observed: Excel error 1

Followed by:

Excel error 2

Although the template file(SampleExcel.xlsx) which is there on server side is open and saved with excel 2013. Then also I don't know why it is showing file is corrupt. And there is enough memory on user's machine, it never touches it's peak value in task manager. Any help would be highly appreciated.

Prateek

I figured it out, actually the problem is not with the memory, but with the user permission on that particular machine. If Admin guys try to do same above mentioned steps with no customization in access then no problem is faced by him.

Anyhow thanks everyone for your time:)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

not enough memory to run excel 2013

From Dev

Possible registry fix for a "Not enough memory to run Microsoft excel" error

From Dev

Excel says "No enough memory to create new spreadsheet"

From Dev

Not enough memory?

From Dev

Windows photo viewer can't run because not enough memory?

From Dev

Not enough memory to allocate in PHP

From Dev

Not enough memory allocation?

From Dev

Windows photo viewer can't run because not enough memory?

From Dev

Excel 2013: Conditional Formatting changes after Query has run

From Dev

VBA error: not enough memory for the operation

From Dev

Git push - select: Not enough memory

From Dev

Windows 10 install - Not enough memory

From Dev

R and data mining not enough memory?

From Dev

Not enough memory, setting a picture in a userform

From Dev

Matlab: Not enough GPU memory for classification

From Dev

Out of memory error despite having enough memory

From Dev

After upgrade from Excel 2010 to Excel 2013 large arrays in VBA give 'Out of memory' error

From Dev

After upgrade from Excel 2010 to Excel 2013 large arrays in VBA give 'Out of memory' error

From Dev

Read Excel files to R with XLConnect: run out of Java memory

From Dev

How to mount /run early enough?

From Dev

Check if there is enough memory before allocating byte array

From Dev

Use RAM after GPU memory is not enough

From Dev

Why RegisterClass fails with ERROR_NOT_ENOUGH_MEMORY?

From Dev

Juicy Pixels complains about not having enough memory

From Dev

Sorting large lists in Prolog: Not enough memory

From Dev

ionic android build - not enough memory to start jvm

From Dev

Spring batch JdbcCursorItemReader cause a memory not enough issue

From Dev

Stack overflows although there is enough memory available

From Dev

Mongodb build/compile error: not enough memory on Ubuntu

Related Related

  1. 1

    not enough memory to run excel 2013

  2. 2

    Possible registry fix for a "Not enough memory to run Microsoft excel" error

  3. 3

    Excel says "No enough memory to create new spreadsheet"

  4. 4

    Not enough memory?

  5. 5

    Windows photo viewer can't run because not enough memory?

  6. 6

    Not enough memory to allocate in PHP

  7. 7

    Not enough memory allocation?

  8. 8

    Windows photo viewer can't run because not enough memory?

  9. 9

    Excel 2013: Conditional Formatting changes after Query has run

  10. 10

    VBA error: not enough memory for the operation

  11. 11

    Git push - select: Not enough memory

  12. 12

    Windows 10 install - Not enough memory

  13. 13

    R and data mining not enough memory?

  14. 14

    Not enough memory, setting a picture in a userform

  15. 15

    Matlab: Not enough GPU memory for classification

  16. 16

    Out of memory error despite having enough memory

  17. 17

    After upgrade from Excel 2010 to Excel 2013 large arrays in VBA give 'Out of memory' error

  18. 18

    After upgrade from Excel 2010 to Excel 2013 large arrays in VBA give 'Out of memory' error

  19. 19

    Read Excel files to R with XLConnect: run out of Java memory

  20. 20

    How to mount /run early enough?

  21. 21

    Check if there is enough memory before allocating byte array

  22. 22

    Use RAM after GPU memory is not enough

  23. 23

    Why RegisterClass fails with ERROR_NOT_ENOUGH_MEMORY?

  24. 24

    Juicy Pixels complains about not having enough memory

  25. 25

    Sorting large lists in Prolog: Not enough memory

  26. 26

    ionic android build - not enough memory to start jvm

  27. 27

    Spring batch JdbcCursorItemReader cause a memory not enough issue

  28. 28

    Stack overflows although there is enough memory available

  29. 29

    Mongodb build/compile error: not enough memory on Ubuntu

HotTag

Archive