Aspose.Word.PleaseReportException: Expected header drawing


#1

Aspose.Word Folk,
I receiving the following error message while trying saving a word file. :
Aspose.Word.PleaseReportException: Expected header drawing, but got something else. For free technical support, please post this error and the file in the Aspose.Word Forums http://www.aspose.com/forums/ShowForum.aspx?ForumID=75.
at ?.?.?()
at ?.?.?()
at ?.?.?()
at ?.?.Save(Document document, Stream stream, String fileName)

Attached to this post is the file I was trying to save.

I was using is the following code:

Public Shared Sub CreateWordTemplate(ByVal wordFilePath As String, ByVal wordTemplateFilePath As String)
Dim myLicense As Aspose.Word.License = New Aspose.Word.License
myLicense.SetLicense(Config.AsposeWordLicenseFile)
Dim myDocument As New Aspose.Word.Document(wordFilePath)
wordDocument.Sections.Clear()
Dim maxCnt As System.Int32 = wordDocument.CustomDocumentProperties.Count()
Dim cnt As System.Int32
For cnt = maxCnt - 1 To 0 Step -1
Dim prop As Aspose.Word.DocumentProperty = wordDocument.CustomDocumentProperties(cnt)
wordDocument.CustomDocumentProperties.Remove(prop.Name)
Next
wordDocument.Save(wordTemplateFilePath, Aspose.Word.SaveFormat.FormatDocument)
End Sub


#2

Hi,

Thank you for the request, we have logged it. Please check back later.