Hello there,
I am using Aspose Words for .Net 9.5.0.0. and getting following error while trying to save attached document:
{"Unknown color type encountered during WordML export - DrColor [EFF2027F]."}
Code:
byte[] templateDoc = null;
FileStream fileStream = new FileStream(fileNameWithPath, FileMode.Open, FileAccess.Read);
Byte[] fileAsByte = new Byte[fileStream.Length];
fileStream.Read(fileAsByte, 0, fileAsByte.Length);
MemoryStream templateMemoryStream = new MemoryStream(fileAsByte);
templateDoc = templateMemoryStream.ToArray();
MemoryStream inStream = new MemoryStream(templateDoc);
Document templateDocument = new Document(inStream);
templateDocument.Save("Test.docx", SaveFormat.Docx);
Error stack trace:
at x7c7a1dceb600404e.xd76179d16486fd56.xbe7cce711e45fa32(x26d9ecb4bdf0456d x6c50a99faab7d741, Boolean x0dae4143cd874639, Boolean xeaf65170fc9ee55f)
at x7c7a1dceb600404e.xd76179d16486fd56.xbe7cce711e45fa32(x26d9ecb4bdf0456d x6c50a99faab7d741)
at x7c7a1dceb600404e.xbfa8eb0310372fb0.x4ac9f4b2e295bbfd(Int32 xba08ce632055a1d9, Object xbcea506a33cf9111)
at x7c7a1dceb600404e.xa25dec8c824ea182.x6210059f049f0d48(ShapeBase x5770cdefd8931aa9, Boolean xe4b4fecd3c706380, x873451caae5ad4ae xd07ce4b74c5774a7, x2cd1f1f5e07462a8 x0f7b23d1c393aed9)
at x7c7a1dceb600404e.xa25dec8c824ea182.x6210059f049f0d48(ShapeBase x5770cdefd8931aa9, x873451caae5ad4ae xd07ce4b74c5774a7, x2cd1f1f5e07462a8 x0f7b23d1c393aed9)
at xa8550ea6ae4a81a5.xaf66e8c590b2b553.VisitShapeStart(Shape shape)
at Aspose.Words.Drawing.Shape.x2449520719b1e37e(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.CompositeNode.xf7ae36cd24e0b11c(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.Drawing.Shape.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.x464d2134480a7bf2(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.CompositeNode.xf7ae36cd24e0b11c(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.Paragraph.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.x464d2134480a7bf2(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.CompositeNode.xf7ae36cd24e0b11c(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.HeaderFooter.Accept(DocumentVisitor visitor)
at xa8550ea6ae4a81a5.xf16912e3a4ef6364.x6075c9125351e131(HeaderFooter x03e7e66b1eecc96f, xaf66e8c590b2b553 xbdfb620b7167944b)
at xa8550ea6ae4a81a5.xf16912e3a4ef6364.xaa925c370fe2a33b(Section xb32f8dd719a105db, xaf66e8c590b2b553 xbdfb620b7167944b)
at xa8550ea6ae4a81a5.xf16912e3a4ef6364.x6210059f049f0d48(Section xb32f8dd719a105db, xaf66e8c590b2b553 xbdfb620b7167944b)
at xa8550ea6ae4a81a5.x07e190e23dab42a9.xe3d2f5ee6867cec8()
at xa8550ea6ae4a81a5.x07e190e23dab42a9.DoWrite()
at xa8550ea6ae4a81a5.xaf66e8c590b2b553.x6210059f049f0d48()
at xa8550ea6ae4a81a5.xe41cdb7a2a4611b4.xe3d2f5ee6867cec8()
at xa8550ea6ae4a81a5.xe41cdb7a2a4611b4.x8cac5adfe79bc025(x8556eed81191af11 x5ac1382edb7bf2c2)
at Aspose.Words.Document.xf381a641001e6830(Stream xcf18e5243f8d5fd3, String xafe2f3653ee64ebc, SaveOptions xc27f01f21f67608c)
at Aspose.Words.Document.Save(String fileName, SaveOptions saveOptions)
at Aspose.Words.Document.Save(String fileName)
at ReportingComponentLibrary.ReportBase.GenerateReport(IList1 officeIdsCanShowNotesFor) in D:\Code\TeamworksV6Reporting\Dev\ReportingComponentLibrary\Reports\ReportBase.cs:line 177<br> at ReportingComponentLibrary.ReportBase.ProcessReportRequest(ReportRequest reportRequest, Template reportTemplate, IList1 officeIdsCanShowNotesFor) in D:\Code\TeamworksV6Reporting\Dev\ReportingComponentLibrary\Reports\ReportBase.cs:line 71
Also, FYI, I saw similar error being resolved in this release:
https://blog.aspose.com/2008/02/08/aspose-words-for-net-5-0-0-released
Could you please guide what is the cause of this error and how can I resolve same?
Thank you!