"Ticks" error when saving as text


#1

Very simple use of aspose.word,
------------------------------

AWord.SetLicense(licenseFile, Me)

inDoc = AWord.Open(“c:\path\filename.doc”)

inDoc.Save(“c:\path\Filename.txt”, SaveFormat.FormatText)

-------------------------------
getting the following exception, i can send you the doc in question if you want…

System.ArgumentOutOfRangeException: Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks.
Parameter name: ticks
at System.DateTime…ctor(Int64 ticks)
at System.DateTime.FromFileTimeUtc(Int64 fileTime)
at System.DateTime.FromFileTime(Int64 fileTime)
at Aspose.Word.File.o.b(s A_0)
at Aspose.Word.File.o.a(Guid A_0, s A_1, DocumentProperties A_2, Hashtable A_3)
at Aspose.Word.File.o.b(j A_0, DocumentProperties A_1, DocumentProperties A_2)
at Aspose.Word.Reader.Doc.n.a(ae A_0)
at Aspose.Word.Document.a(ae A_0)
at Aspose.Word.Document.a(String A_0, c A_1)
at Aspose.Word.Word.Open(String fileName)
at CyberRecruiter4.ImportAppfromFile.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\CyberRecruiter4\ImportAppfromFile.aspx.vb:line 86
Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks.
Parameter name: ticks


#2

There must be a property in the document that is causing the error. Please send to document to word@aspose.com.


#3

There was an invalid date value in the document file, fixed Aspose.Word 2.0.3 to safely read these.