Data Access Worldwide Knowledge Base
Article ID 2231 Article Title HOWTO: Get Crystal Reports to drill-down when using the cCrystal class Article URL http://www.dataaccess.com/kbasepublic/KBPrint.asp?ArticleID=2231 KBase Category VDF11 Date Created 07/28/2006 Last Edit Date 08/03/2006
Article Text
QUESTION:
How do I get my Crystal Reports report to drill-down when using the cCrystal class?
ANSWER:
There are a list of properties for the ActiveX preview that have been defaulted. You can change these defaults using the following code in your report object:
Procedure OnDisplayReport Handle hoReport
Handle hoViewer
Get ActiveXReportViewerObject of hoReport to hoViewer
Set ComEnableDrillDown of hoViewer to TRUE
Set ComDisplayTabs of hoViewer to TRUE
Set ComEnableCloseButton of hoViewer to TRUE
End_Procedure // OnDisplayReport
The Order Entry sample includes an example of the use of those properties in the ReportPreviewCR.rv report view.
This is a list of properties that are available:
Set ComDisplayToolbar of hoViewer To True
Set ComDisplayBorder of hoViewer To False
Set ComDisplayTabs of hoViewer To False
Set ComDisplayBackgroundEdge of hoViewer To True
Set ComDisplayGroupTree of hoViewer To False
Set ComEnableGroupTree of hoViewer To False
Set ComEnableStopButton of hoViewer To False
Set ComEnablePrintButton of hoViewer To True
Set ComEnableCloseButton of hoViewer To False
Set ComEnableRefreshButton of hoViewer To False
Set ComEnableExportButton of hoViewer To True
Set ComEnableSearchExpertButton of hoViewer To True
Set ComEnableHelpButton of hoViewer To False
Set ComEnableZoomControl of hoViewer To True
Set ComEnableProgressControl of hoViewer To True
Set ComEnableSearchControl of hoViewer To True
Set ComEnableNavigationControls of hoViewer To True
Set ComEnableDrillDown of hoViewer To False
Set ComEnableAnimationCtrl of hoViewer To True
Set ComEnableSelectExpertButton of hoViewer To False
Set ComEnablePopupMenu of hoViewer To False
Set ComLaunchHTTPHyperlinksInNewBrowser of hoViewer To True
You can read more on the topic in the help: Using Crystal Reports in Applications |RDC Advanced Programming | Subclassing the Crystal Classes.
Contributed By:
David Martinko
Company: Redeemed Software & Hosting
email: DavidM@RedeemedSoftware.com
Web Site: http://www.RedeemedSoftware.com
Web Links Related to this Article
DAW Knowledge Base article 2178: EXAMPLE: cCrystal Subclass to handle ADO Properties
URL=http://www.dataaccess.com/KBPrint.asp?ArticleID=2178
DAW Knowledge Base article 2183: ERROR: "Unable to instantiate COM object." when running a report
URL=http://www.dataaccess.com/KBPrint.asp?ArticleID=2183
Email this Article
Email this Article to a Colleague
Send Feedback on this Article to Data Access Worldwide
Copyright ©2010 Data Access Corporation. All rights reserved.
The information provided in the Data Access Technical Knowledge Base is provided "as is" without warranty of any kind. Data Access Corporation disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Data Access Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Data Access Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.