Skip to content
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

Writing a long docx file #456

Open
jianboqi opened this issue Jul 30, 2023 · 1 comment
Open

Writing a long docx file #456

jianboqi opened this issue Jul 30, 2023 · 1 comment

Comments

@jianboqi
Copy link

Hi, When I use DocX to write a large file, during the Save, it produces error, stream is too long.
Do you have any hint for this error?
Thank you

在 System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count) 在 MS.Internal.IO.Packaging.SparseMemoryStream.CopyMemoryBlocksToStream(Stream targetStream) 在 MS.Internal.IO.Packaging.SparseMemoryStream.WriteToStream(Stream stream) 在 MS.Internal.IO.Zip.ZipIOFileItemStream.Save() 在 MS.Internal.IO.Zip.ZipIOLocalFileBlock.Save() 在 MS.Internal.IO.Zip.ZipIOBlockManager.SaveContainer(Boolean closingFlag) 在 MS.Internal.IO.Zip.ZipIOBlockManager.SaveStream(ZipIOLocalFileBlock blockRequestingFlush, Boolean closingFlag) 在 MS.Internal.IO.Packaging.CompressEmulationStream.Flush() 在 MS.Internal.IO.Packaging.CompressStream.Flush() 在 Xceed.Document.NET.PackagePartStream.Flush() 在 System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder) 在 System.Xml.XmlEncodedRawTextWriter.Flush() 在 System.Xml.XmlWellFormedWriter.Close() 在 System.Xml.XmlWriter.Dispose(Boolean disposing) 在 System.Xml.Linq.XDocument.Save(TextWriter textWriter, SaveOptions options) 在 Xceed.Words.NET.DocX.Save(String password) 在

@XceedBoucherS
Copy link
Collaborator

Hi,

Can you submit a sample so we can reproduce it.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants