Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files from any .NET platform (C#, VB.NET, ASP.NET, .NET Core) and Java applications (J2SE and J2EE) with fast and high quality performance.

Wed Sep 15, 2021 1:14 pm

Hi,

we sometimes have a problem when saving the docx document. This problem occurs when using a Win7 computer and we don't reproduce it on Win10. We don't encounter this problem very often and we don't know from where it came.

You will find below the error message we have.

I hope you'll be able to find where dies this problem came.
Thanks by advance for your help.


Code: Select all
L'invocation de la méthode <SauvegarderSpiDoc()> du type <Void> a échoué
Le framework .NET a renvoyé l'erreur suivante :
La référence d'objet n'est pas définie à une instance d'un objet.

Code erreur : 200002
Niveau : erreur fatale

Module : 'wd250net4_64.dll (01F250090f - 25.0.329.0)
Identifiant des informations détaillées (.err) : 200002
Informations de débogage :
System.Reflection.TargetInvocationException: Une exception a été levée par la cible d'un appel. --->
System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.
   à spr?.?()
   à spr?.?(RectangleF A_0)
   à spr?.?(spr? A_0)
   à spr?.?(RectangleF A_0)
   à spr?.?(spr? A_0)
   à spr?.?(RectangleF A_0)
   à spr?.?(spr? A_0)
   à spr?.?(RectangleF A_0)
   à spr?.?(spr? A_0, spr? A_1, spr? A_2)
   à spr?.?()
   à spr?.?()
   à spr?.?(Document A_0)
   à Spire.Doc.Document.?()
   à Spire.Doc.Document.?()
   à Spire.Doc.Document.SaveToFile(String fileName, FileFormat fileFormat)
   à OpenXML_Word.DocxDoc.SauvegarderSpiDoc()
   --- Fin de la trace de la pile d'exception interne ---
   à System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   à System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   à System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   à CDotNetMethod.bInvoke(Char* pszTypeName, Char* pszMethodName, Char* pszParameters, MethodInfo gcMethod, Object gcObj, CSLevel* pclPile, Int32 nNbParamPile, Int32 bValeurRetour, STOperationDotNet* pstOperation)


asterakin
 
Posts: 9
Joined: Mon Apr 15, 2019 7:50 am

Thu Sep 16, 2021 3:04 am

Hello,

Thanks for your inquiry.
This issue should be related to your input file. Please find out which file throws the exception during operation. Then provide us with this file and your test code to help us investigate further. You can upload your file here or email it to us (support@e-iceblue.com). Thanks in advance.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1241
Joined: Mon Oct 19, 2020 3:04 am

Return to Spire.Doc