Problem:

 
When you run the MERGELETTERPRINT command back-to-back several times, after the second and subsequent merges within about 30 seconds, the merge print process fails and you get the following error in the job log:
 
Error 500 MS Word OLE error: 13 The data is invalid occurring when running back to back mail merges

Solution:

 
There is a problem with the open-source EventVB API in iSeries Office Integrator that sets the default printer and the simplex/duplex modes. Remove any calls from the CL program that call the mail merge and set the default printer or SIMPLEX/DUPLEX mode. You can now print back-to-back with no errors.
 
Note: RJS Software only calls the EventVB API when changing printers or setting duplex mode.

Still have questions? We can help. Submit a case to Technical Support.

Last Modified On: December 10, 2016