ocx control order of execution when setting properties in VB

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

ocx control order of execution when setting properties in VB

Post by botbswco » Fri Jan 23, 2015 3:40 pm

I^m converting all my old arpeggio authored .rp6 libraries to 12.5 .rsw files. All my reports are called through a VB6 application using the ocx control. In converting the code to reference a report directory vs. a report library I^v encountered the following issue: If the report name property is set before the report directory property all is well. However if the report directory property is set before the report name an error is thrown (Cannot open report file xyz.rsw)____i.e.____rr_control.reportname = "abc.rsw"__rr_control.reportdirectory = "c: r_reports"____works fine____rr_control.reportdirectory = "c: r_reports"__rr_control.reportname = "abc.rsw"____throws the error.____Does anyone know if this is a bug or by design? I can^t find anything in the documentation that says order of execution is important or required.____Thanks____

Post Reply