DocX icon indicating copy to clipboard operation
DocX copied to clipboard

Writing a long docx file

Open jianboqi opened this issue 2 years ago • 1 comments

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) 在

jianboqi avatar Jul 30 '23 06:07 jianboqi

Hi,

Can you submit a sample so we can reproduce it.

Thank you

XceedBoucherS avatar Aug 07 '23 12:08 XceedBoucherS