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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Initialize error

Status
Not open for further replies.

activetrader

Programmer
Jun 13, 2011
1
PH
Hi all,
I encounter error in Active Reports which I cannot solve. I hope you can help. thank you.


Scenario:
An executable calls a DLL multiple times [1000 calls] to print a report.
In the DLL, ActiveReportPreview is instantiated in the constructor.
In the ActiveReportPreview class constructor, initializecomponent is then called.
In the Initializecomponent method, DataDynamics.ActiveReports.Viewer.Viewer() is instantiated.

Error encountered:
ERROR: 06/08/2011 19:32:05 Error in Class_Initialize.
System.Windows.FormsError creating window handle. at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.TreeView.CreateHandle()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.OnVisibleChanged(EventArgs e)
at System.Windows.Forms.ScrollableControl.OnVisibleChanged(EventArgs e)
at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
at System.Windows.Forms.TabPage.set_Visible(Boolean value)
at DataDynamics.ActiveReports.Viewer.TableOfContents.#ih()
at DataDynamics.ActiveReports.Viewer.TableOfContents..ctor()
at DataDynamics.ActiveReports.Viewer.TableOfContentsObject..ctor()
at DataDynamics.ActiveReports.Viewer.Viewer.#ih()
at DataDynamics.ActiveReports.Viewer.Viewer..ctor(#Oil v)
at DataDynamics.ActiveReports.Viewer.Viewer..ctor()
at Reports.Forms.ActivePreview.InitializeComponent() in \\ActivePreview.Designer.cs:line 31
at Reports.Forms.ActivePreview..ctor() in \\ActivePreview.cs:line 23
at Reports.Report..ctor() in \\Report.cs:line 1958
Location: Report - Class_Initialize

 
That looks like .NET, so you might want to try asking here, forum796, instead
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top