Using the following code
using GemBox.Document; var document = DocumentModel.Load("Example.doc");
It throws the error:
System.ArgumentNullException: ‘Value cannot be null. Arg_ParamName_Name’
System.ArgumentNullException
HResult=0x80004003
Message=Value cannot be null. Arg_ParamName_Name
Source=System.Text.RegularExpressions
StackTrace:
at System.Text.RegularExpressions.ThrowHelper.ThrowArgumentNullException(ExceptionArgument arg)
at System.Text.RegularExpressions.Regex.Replace(String input, MatchEvaluator evaluator)
at .(PropertySet )
at .(WordDocument , )
at .(Stream , Stream )
at GemBox.Document.DocLoadOptions.7k4lmxmhj5tk8h83eglk6fss34tasuhn(Stream , String )
at GemBox.Document.DocumentModel.Load(String path, LoadOptions options)
at Program.<Main>$(String[] args) in C:\Code\Law365.Azure\Law365.Azure.TestConsole\Program.cs:line 58