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
When I try to read the word(.docx) template file which has text box on header (or footer) and output the document file. Word will pop up windows about "Word found unreadable content in xxx.xlsx" when I open the output file.
Here is program:
var templatePath = @".\Template.docx";
var outputPath = @".\Output.docx";
using var templateFileStream = new FileStream(templatePath, FileMode.Open, FileAccess.Read);
var doc = new XWPFDocument(templateFileStream);
using (var outputFileStream = new FileStream(outputPath, FileMode.Create))
{
doc.Write(outputFileStream);
}
When I try to read the word(.docx) template file which has text box on header (or footer) and output the document file. Word will pop up windows about "Word found unreadable content in xxx.xlsx" when I open the output file.
Here is program:
Here is template file:
Template.docx
The text was updated successfully, but these errors were encountered: