You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello i am using npoi version 2.6.2 in my .net 7 application. The main usage is to open a existing docx document, replace specified keywords and then save the modified document as a new docx.
I have a document with one pictures. The layout of the picture is set to wrap text tight. Now i open, modify and save the file with my code. The result can no longer be open with word.
For testing i just open and save the docx.
using Stream stream = new MemoryStream(file);
XWPFDocument document = new XWPFDocument(stream);
using MemoryStream memoryStream = new MemoryStream();
document.Write(memoryStream);
return memoryStream.ToArray();
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello i am using npoi version 2.6.2 in my .net 7 application. The main usage is to open a existing docx document, replace specified keywords and then save the modified document as a new docx.
I have a document with one pictures. The layout of the picture is set to wrap text tight. Now i open, modify and save the file with my code. The result can no longer be open with word.
For testing i just open and save the docx.
This is my test document and the result that i get.
Example.docx
Result.docx
Is this a Bug or is there any thing i do wrong?
Beta Was this translation helpful? Give feedback.
All reactions