Error while batch printing

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
Vladimir
Posts: 7
Joined: Tue Oct 10, 2017 12:44 pm

Error while batch printing

Post by Vladimir » Fri Oct 04, 2002 11:30 am

Hello____We are printing letters in batches using R&R SQL ver. 9.09 from VB6. We are calling API functions from VB and it works fine everywhere except when we print those letter reports in batches, one right after another.____We call execRuntime and pass 0 as bWait, to make it start and return right away. We do not want to wait until runtime finished printing. Our call looks like this:____li = execRuntime(lh_Rpt, 0, SW_HIDE, li, ll_P, ByVal ls_RR, 100)____The same report template file is used for every letter printing. So when we try to call chooseReport with the same template name while runtime is still printing we are getting "Cannot open file ^Template path and name here^" error.____I can emulate this by opening that template in Report Designer and starting our applications. Looks like report template is locked by runtime while printing. All files are on the local drive, no multiuser environment involved.____Is there a way to avoid that? Waiting until report printing is finished is not a good option when you are printing a lot of letters.____Thank you.

Post Reply