The attached document is generating the error below (MailMerge.zip contains the MailMerge class referenced in the errror):
Item has already been added. Key in dictionary: 'f2db563d-6a59-4cec-e6ce-233d2f9c7d3e' Key being added: 'f2db563d-6a59-4cec-e6ce-233d2f9c7d3e'
at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
at System.Collections.Hashtable.Add(Object key, Object value)
at ?.?.?(Byte[] ?, ? ?) at ?.?.?(Int32 ?, Object ?)
at ?.?.?(ShapeBase ?, ? ?, ? ?, Boolean ?)
at ?.?.?(ShapeBase ?, ? ?)
at ?.?.?(ShapeBase ?, BinaryWriter ?)
at ?.?.?(ShapeBase ?, BinaryWriter ?)
at ?.?.?(ShapeBase ?)
at ?.?.?(Shape ?)
at ?.?.?(ShapeBase ?)
at ?.?.?(ShapeBase ?)
at ?.?.?(Shape ?)
at ?.?.VisitShapeStart(Shape shape)
at Aspose.Words.Drawing.Shape.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode. ? (DocumentVisitor ? )
at Aspose.Words.Paragraph.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode. ? (DocumentVisitor ? )
at Aspose.Words.Tables.Cell.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode. ? (DocumentVisitor ? )
at Aspose.Words.Tables.Row.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode. ? (DocumentVisitor ? )
at Aspose.Words.Tables.Table.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode. ? (DocumentVisitor ? )
at Aspose.Words.Body.Accept(DocumentVisitor visitor)
at ?.?.?(Section ?)
at ?.?.?()
at ?.?.?(? ?)
at Aspose.Words.Document.?(Stream ?, String ?, SaveFormat ?)
at Aspose.Words.Document.Save(String fileName, SaveFormat fileFormat)
at Aspose.Words.Document.Save(String fileName)
at KCMS.DAL.MailMerge.MakeASingleFile(Object FileNumberOrReferralId, DataSet& dsMerge, String rootUncKey, FileInfo templateFileInfo, String dateTimeSuffix, String separateDocID, String documentCategory)
at KCMS.DAL.MailMerge.CreateCaseDocsFromEvent(String TemplateFile, String FileNumber, Decimal EventSeqNo, DateTime EventDate, String DocketCode, DateTime DocketDate, Boolean IncludeCodefendants, String documentCategory, String witnesses, Int64 ProgramSequenceNumber)
at Core_EventEntry.AddCaseEvent()
at Core_EventEntry.btnAddEvent_Click(Object sender, EventArgs e)
The document has many check box objects. I think it was converted from a form of some sort. Any help you can give is greatly appreciated.