Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OCX in a nested report

Status
Not open for further replies.

TheGreenOne

Programmer
Jan 11, 2003
56
0
0
US
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?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top