New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
workbook.addImage is not a function #322
Comments
I am using Excel.stream.xlsx.WorkbookWriter() to create a workbook writer stream |
Problem is when we create a workbook using writer stream then it doesn't find function
Otherwise simply use below to create a worksheet and it works, |
@guyonroche @ishantiw i'm using the above code but i'm getting "worksheet.addImage is not a function".here is the code var workbook = Excel.stream.xlsx.WorkbookWriter(); |
@guyonroche If you will create a worksheet from Recommended usage, |
@ishantiw @guyonroche
error: imageId1 returns 0 Please help |
@qiandongyq |
@ishantiw I think the issue is that i'm using buffer to download the excel file. Everything is working before add images. It is browser, can't see any errors
|
@qiandongyq got same issue here, stopped at |
@ishantiw the workaround you posted earlier doesn't work:
This will throw Using the recommended |
Anyone know if this is getting fixed anytime soon? |
@Abouyer20 The maintainer is too busy and won't be able to contribute for the next few months. The non-streaming version had the same problem and was fixed, maybe you can get some pointers from here: #374 |
This issue is a major release blocker. Surprised that, its not being addressed.. Guys, do you know any other library that supports all functionality in WorkbookWriter and easy to switch from exceljs(semantically similar)? |
nothing yet? I'm trying to create a stream too, but, also having this error
|
got the same thing. no error, but it does not work tho. it does not proceed in writeBuffer(). |
Same issue. Printing excel with over 500k rows about 15 columns. Regular workbook won't work, so the stream workbook writer is my only option and it works great besides not allowing images. Any workaround would be greatly appreciated. |
Anyone able to find any workaround? |
Got this working by converting my image to base64 via https://www.base64-image.de/ var myBase64Image = "data:image/jpeg;base64,/9......................."; |
Still getting this error when using ExcelJS.stream.xlsx.WorkbookWriter |
Any updates on this? |
I have installed latest version of exceljs, however I'm still getting error
workbook.addImage is not a function
when i'm trying to add any image to the workbook.PS: I have 0.4.10 version
The text was updated successfully, but these errors were encountered: