question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Method not found: 'Void NPOI.SS.UserModel.IWorkbook.Write(System.IO.Stream)'.

See original GitHub issue

Hi, I have the following code: `

using (var ms = new MemoryStream())
        {
            var mapper = new Mapper()
            {
                HasHeader = true
            };
            mapper.Save(ms, listDtos, "Auditlogs");
         }

`

but on mapper.Save(…) i get this error : Method not found: ‘Void NPOI.SS.UserModel.IWorkbook.Write(System.IO.Stream)’.

The error is appeared after i updated the “Npoi.Mapper” Version=“3.5.1” to “Npoi.Mapper” Version=“4.1.0”

Any help appreciated

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Reactions:2
  • Comments:6

github_iconTop GitHub Comments

2reactions
flkellercommented, Nov 24, 2022

If you have installed NPOI manually in version 2.6.0 you have to downgrade to 2.5.6. Afterwards it is working fine. Npoi has changed there Interfaces in the latest minor release

0reactions
curllioncommented, Jun 14, 2023

我也遇到这个问题啊,各种版本都试了,一直报这个错

Read more comments on GitHub >

github_iconTop Results From Across the Web

MemoryStream seems be closed after NPOI workbook.write?
I'm not familiar with NPOI, but I assume that the Write method is accepting Stream, not MemoryStream. If that is the case, you...
Read more >
Issues · donnytian/Npoi.Mapper
Use this tool to import or export data with Excel file. The tool is a convention based mapper between strong typed object and...
Read more >
Method not found: System.MissingMethodException
I am upgrading .net core web api 2.2 to .net core 3.1 while runtime i am getting error like , 'Microsoft.Extensions.DependencyInjection.
Read more >
Workbook (POI API Documentation) - Apache POI
Returns a spliterator of the sheets in the workbook in sheet order. void, write(java.io.OutputStream stream). Write out this workbook to an OutputStream.
Read more >
Easiest Way To Import Excel Files in C# — Dan Zoeller MBA
The task at hand for me was that I needed to import and transform several different Excel formats into an existing SQL user...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found