Print Page | Close Window

Report control’s ProgID

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1692
Printed Date: 17 July 2025 at 10:19pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Report control’s ProgID
Posted By: pstack
Subject: Report control’s ProgID
Date Posted: 22 January 2005 at 1:36am

When I execute the following line of code (VB6) to dynamically add a report control to a form:

Set rptControl = frm.Controls.Add("XtremeReportControl.ReportControlCtrl.9.50 ", "rptControl")

I get a 'Run-time error 741' (Programmatic ID string too long 'item'. The Programmatic ID must be 39 characters or less.)

Why is the ProgID for this control so long (42 chars)?  This is standard VB.  Does anybody know of a workaround?




Replies:
Posted By: Flamer
Date Posted: 22 January 2005 at 6:19am

Try making an UserControl with the Reportcontrol created in designtime.

Next: Load your created UserControl:

Set YourUserControl = frm.Controls.Add("<YourUserControl-ID-String>", "<Name>")

...And don't forget to add the License:

Call Licenses.Add("<YourUserControl-ID-String>", "<LicenseKey>")




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net