Free Support Forum - aspose.com

Unable to cast object of type 'Aspose.Words.Paragraph' to type 'Aspose.Words.Row'

I'm using Aspose to fill in bookmarks for word documents.

moa_doc = New Aspose.Words.Document(Template)

But when I create the document I get the following error "Unable to cast object of type 'Aspose.Words.Paragraph' to type 'Aspose.Words.Row'."

It works fine with all my Templates except for this one (see file attached)

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. I tried to open your document using the latest version of Aspose.Words (v5.2.1) and it seems that all works fine. Please try using Aspose.Words v5.2.1. You can download this version from here.

http://www.aspose.com/community/files/51/file-format-components/aspose.words/entry133970.aspx

Best regards,