TheGreenOne
Programmer
I have an ocx control that I want to be on each detail row of a report. Problem is when I place the control in the datawindow object it is in the foreground layer, and I cannot change it to the band layer (the only options are foreground and background). I really need a separate instance of the control for each row, because I am going to programmatically set different variables in the ocx for each row. But this does not seem to be an option for an ocx. Here is my slick work around (and around and around). I created a separate datawindow and put the ocx in that. Then I put the new datawindow into my original datawindow as a nested report. Now I know I have a separate instance of the control for each row, but my problem is how to reference it so I can set the variables. This is what I'm trying:
dw_1.Object.r_report[1].Object.ole_1.object.var1=123456
I am getting an error accessing external object property.
What is the correct syntax to access an ole in a nested report?
dw_1.Object.r_report[1].Object.ole_1.object.var1=123456
I am getting an error accessing external object property.
What is the correct syntax to access an ole in a nested report?