Our firm intends to use spire.doc to manage word files.
before purchassing we are using version 4.1.20 to test the product.
I discover that word files created with office 2007 or office 2010 and saved in DOC format (97-2003) with thumbnail won't load.
this method throw exception "the method is not implemented":
- Code: Select all
"Document document = new Document(docfilename);"
here is the error stack:
- Code: Select all
System.NotImplementedException was unhandled by user code
Message="The method or operation is not implemented."
Source="Spire.Doc"
StackTrace:
at hb.a(PropertyType A_0, Stream A_1, Int32 A_2)
at hb.c(Stream A_0, Int32 A_1)
at fx.c(Stream A_0)
at iv.d(Stream A_0)
at iv..ctor(Stream A_0)
at f3.d()
at f3.e()
at f3.g()
at bw.a(f3 A_0, Document A_1)
at Spire.Doc.Document.LoadFromFile(String fileName)
at Spire.Doc.Document.LoadFromFile(String fileName, FileFormat fileFormat, String password)
at Spire.Doc.Document.LoadFromFile(String fileName, FileFormat fileFormat)
at InsideMOSS.Samples.Helper.AddWaterMark(String doc) in C:\Users\maia_cb\Desktop\CustomWatermark4\CustomPolicyEventHandler\Helper.cs:line 70
at MTI.WaterMarkPolicyEventHandler.DatePolicyEventHandler.ItemAdded(SPItemEventProperties properties) in C:\Users\maia_cb\Desktop\CustomWatermark4\CustomPolicyEventHandler\DatePolicyEventHandler.cs:line 24
at Microsoft.SharePoint.SPEventManager.RunItemEventReceiver(SPItemEventReceiver receiver, SPItemEventProperties properties, SPEventContext context, String receiverData)
at Microsoft.SharePoint.SPEventManager.RunItemEventReceiverHelper(Object receiver, Object properties, SPEventContext context, String receiverData)
at Microsoft.SharePoint.SPEventManager.<>c__DisplayClass8`1.<InvokeEventReceivers>b__0()
at Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state)
at Microsoft.SharePoint.SPSecurity.RunAsUser(SPUserToken userToken, Boolean bResetContext, WaitCallback code, Object param)
here you can find such word files in zip attachment.
2007-97_2003-WithThumbnail.doc : file created with word 2007 saved in doc format (97-2003) with option thumbnail
2010-97-2003-WithThumbnail : file created with word 2010 saved in doc format (97-2003) with option thumbnail
I do not have the error with all others doc formats.