Hi,friends,Maybe I need your help.
today I get the newest Aspose.Total for .NET,I use Aspose.Word convert “.docx” to “.pdf”,but I received the errors:
Object reference not set to an instance of an object.
at .( , Int32 , , Int32 , Int32 )
at .( )
at .( )
at .()
at .( , Int32 )
at .( )
at .( )
at .( , Int32 )
at .( , Int32 , Boolean )
at .()
at .( , Int32 , Boolean , Boolean )
at . ()
at .( , Int32 )
at .( )
at .()
at .( )
at .(Boolean )
at .()
at .(Document , )
at Aspose.Words.Document.(Boolean )
at .( , )
at . ( )
at Aspose.Words.Document.( , SaveOptions )
at Aspose.Words.Document.(Stream , String , SaveOptions )
at docToPdf.convertPDF.documentToPdf(String ext, String inputName, String outputName).
My codes:
Aspose.Words.Document doc = new Aspose.Words.Document(inputName);
doc.Save(outputName, Aspose.Words.SaveFormat.Pdf);
The “.docx” file is attached.
How to resolve this problem?