Posted 16 July 2018, 7:12 pm EST
It works fine in AR2 COM and in Windows Forms.
Forums Home / ActiveReports / ActiveReports v7+
Posted by: ilia on 16 July 2018, 7:12 pm EST
Posted 16 July 2018, 7:12 pm EST
It works fine in AR2 COM and in Windows Forms.
Posted 16 July 2018, 10:15 pm EST
Hello Ilia,
You can refer to the following link:
http://help.grapecity.com/activereports/webhelp/AR12/webframe.html#UseCustomControlsonReports.html
Hope it helps.
Thanks,
Mohit
Posted 17 July 2018, 3:31 pm EST
I tried with Forms.TextBox
The invalid operation exception occurs in Detail_Format.
The sample attached.
SectionReportApplication2.zip
Posted 17 July 2018, 9:48 pm EST
Hello,
Please use the following code in form_load method
Dim rpt As New SectionReport1()
rpt.Run()
AddHandler rpt.Sections("Detail").Format, AddressOf rptDetail_Format
Viewer1.LoadDocument(rpt.Document)
Thanks,
Mohit
Posted 18 July 2018, 2:37 am EST
Your code works without AddHandler …
But does not work in “syncDocument” mode.
Remarks from AR12 help documentation:
If the report document is linked to a viewer control the report will synchronize the viewer display and load pages as soon as they have completed rendering.
Posted 19 July 2018, 8:19 pm EST
Hello,
I have escalated your issue to our developer team(261051) and will inform you once I get any information from them.
Thanks
Posted 25 July 2018, 7:37 pm EST
Hello,
Use the following line of code in “Detail_Format” of section report
CustomControl1.Control.Invoke(Sub()
CustomControl1.Control.Text = "I set System.Windows.Forms.TextBox"
End Sub)
Also, Please set the “ImageType” of the custom control to “PNG”.
Hope it helps.
Thanks,
Mohit
Posted 25 July 2018, 9:53 pm EST
Thank you.
Perhaps this will help me add my own ActiveX control (with workarounds) that works in AR2 COM.