Print Page | Close Window

AttachPane --> OpenCrystalReport

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=10418
Printed Date: 01 October 2024 at 9:17am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: AttachPane --> OpenCrystalReport
Posted By: Jean
Subject: AttachPane --> OpenCrystalReport
Date Posted: 30 April 2008 at 9:05am
I like to load a CrystalReport only if needed. That means only if the user like to see the pane with the CrystalReport-ViewerControl on it.
But if I load the Report in the AttachPane-Event, the application is kind of locked. You have to click on the desktop to unlock the application.

Please check the sample. Run it and click on the Crystl-Tab.

With a timer (to decouple the AttachPane event from the OpenReport function) I can solve this problem, but is there another solution?

VB6 SP6
Crystal Reports 11 Release 2 Components
CodeJock Docking Panes 11.2.2
Windows XP SP2


uploads/20080430_090445_DockingPaneCrys.zip - uploads/20080430_090445_DockingPaneCrys.zip



Replies:
Posted By: Oleg
Date Posted: 01 May 2008 at 3:12am
Hi,
 
As workaround you can disable dragging while CrystalReport was not initialize:
 

Private Sub DockingPane1_Action(ByVal Action As XtremeDockingPane.DockingPaneAction, ByVal Pane As XtremeDockingPane.IPane, ByVal Container As XtremeDockingPane.IPaneActionContainer, Cancel As Boolean)
   
    If (Action = PaneActionDragging) And (Pane.Id = 2) And (Picture2.Visible = False) Then Cancel = True
   
End Sub


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Jean
Date Posted: 06 May 2008 at 7:47am
Thank you, Oleg. It's working! 



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