This project has moved. For the latest updates, please go here.

bug replacing text

Jun 24, 2010 at 2:39 PM
Edited Jun 24, 2010 at 2:45 PM

Hi,

I found a bug when replacing text inside floating textboxes. If you want the sample docx file let me know your email so I can send it to you.

System.InvalidOperationException occurred
  Message=Sequence contains no elements
  Source=System.Core
  StackTrace:
       at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
       at Novacode.Picture..ctor(DocX document, XElement i)
       at Novacode.Paragraph.<.ctor>b__3(XElement i)
       at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
       at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
       at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
       at Novacode.Paragraph..ctor(DocX document, XElement xml, Int32 startIndex)
       at Novacode.DocX.RebuildParagraphs(DocX document)
       at Novacode.DocX.PostLoad(Package& package)
       at Novacode.DocX.Load(String filename)
       at Syngrapha.Form1.Form1_Load(Object sender, EventArgs e) in C:\Users\lispmc\Desktop\Projects\Syngrapha\Syngrapha\Form1.cs:line 68
  InnerException:

 

System.InvalidOperationException occurred
  Message=Sequence contains no elements
  Source=System.Core
  StackTrace:
       at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
       at Novacode.Picture..ctor(DocX document, XElement i)
       at Novacode.Paragraph.<.ctor>b__3(XElement i)
       at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
       at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
       at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
       at Novacode.Paragraph..ctor(DocX document, XElement xml, Int32 startIndex)
       at Novacode.DocX.RebuildParagraphs(DocX document)
       at Novacode.DocX.PostLoad(Package& package)
       at Novacode.DocX.Load(String filename)
       at Syngrapha.Form1.Form1_Load(Object sender, EventArgs e) in C:\Users\lispmc\Desktop\Projects\Syngrapha\Syngrapha\Form1.cs:line 68
  InnerException:

Coordinator
Nov 14, 2010 at 6:44 PM

As of change set 57500 this issue has been fixed.