05-10-2019 07:01 AM
My application was working fine until now.
I get the following error when I try to print a report:
The remote procedure call failed.
in NI_ReportGenerationToolkit.lvlib:Word_Open.vi->NI_Word.lvclass:new report subVI.vi->NI_report.lvclass:Create Report.vi->Open Template - Search and Replace.vi->Contoller.lvlib:Top Level print.vi
The error originates in NI_ReportGenerationToolkit.lvlib:Word_Open.vi as shown below:
I have microsoft professional plus 2019 and am using windows 10 pro.
Any ideas why it is failing?
05-10-2019 08:07 AM
In my code, I open a template to get information and then close it before opening it again.
I fixed the issue by inserting a 5 second delay. Must be something to do with Word 2019 as this had been working seamlessly for over a year!