R&R Runtime With Visual Basic 6
-
- Posts: 3
- Joined: Tue Oct 10, 2017 12:44 pm
R&R Runtime With Visual Basic 6
I am having difficulty deploying a simple application that uses the OCX. Every time I run the executable, I get an "automation error" with a very long number after it. I have double checked to see if all of the required files were included in the distribution and I have what I^m supposed to have.____The odd thing is, that when I double click the .RRW file, the viewer loads and runs the report without trouble. ____I have commented out the code that actually calls the report and replaced it with an execute call to the viewer and THAT works. This step seems to isolate the problem squarely with the OCX.____Has anyone else seen this behavior and are there any steps I can take to move forward?____Karl
=> RE: R&R Runtime With Visual Basic 6
What happens if you create an app using the control and add a button with just:__RRReport1.ReportName="Myreport.RRW"__RRReport1.Action=1____Does that work?____Kathleen__R&R Support
-
- Posts: 3
- Joined: Tue Oct 10, 2017 12:44 pm
==> RE: R&R Runtime With Visual Basic 6
Thanks for the quick response.____The ocx does not have an .Action method directly but it does have an action parameter on the RunReport method, which is set to 1.____
-
- Posts: 3
- Joined: Tue Oct 10, 2017 12:44 pm
==> RE: R&R Runtime With Visual Basic 6
Never mind!____We found the problem. It seems to be an un-handled error in the OCX. The situation that caused it, as we^ve been able to re-create, is when a report name specified within the control is invalid or does not exist. The program we wrote actually changed that name to a different report but when it came time to execute using the .RunReport(1), the invalid name somehow interferred and caused the __OCX to generate the "Automation Error"____