Directory:
1. Report parts Overview
2. Report Part Viewer
3. crystalreportpartsviewer class
4. crystalreportpartsviewer Member
----------------------------------------------------------------
1. Report parts Overview
The report object separately displayed in the viewer (no other content on the report page) is called a report part. More accurately, a report component is an object that uses a hyperlink from a primary report object to a target object.
The report part is designed to work with the DHTML viewer subset of the Crystal Report viewer to extend the navigation possibilities between the report and the report. The report component hyperlink can be linked to other objects in the current report or any other objects in the report. This link allows you to create a pilot path in the report so that each site on this path only displays specific information.
----------------------------------------------
2. Report Part Viewer
Report Part viewer is a new viewer that allows you to display report parts separately (the rest of the report page is not displayed ). This viewer can be integrated into web applications to display specific report objects to users separately (users do not have to see the rest of the report ).
You can create report component hyperlinks in report designer or by using code, but use their functions in report viewer.
----------------------------------------------
3. crystalreportpartsviewer class
See
Crystalreportpartsviewer member | crystaldecisions. Web namespace
Requirements
Namespace: crystaldecisions. Web
Platform: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP
Assembly: crystaldecisions. Web (in crystaldecisions. Web. dll)
Provides attributes, methods, and events that control the appearance and functions of the Report Part viewer.
For a list of all members of this type, see crystalreportpartsviewer members.
Object
Control
Webcontrol
Crystalreportviewerbase
Crystalreportpartsviewer
----------------------------------------------
4. crystalreportpartsviewer Member
See
Crystalreportpartsviewer class | crystaldecisions. Web namespace
Public instance attributes
Batchsize int32. Gets or sets the number of records displayed in the Report Part viewer.
Clienttarget (inherited from crystalreportviewerbase) string. Gets or sets the rendering target for different browsers. Valid values include "ie4", "ie5", "uplevel", "downlevel", and "Auto ".
Boolean value of enabledrilldown. Obtain or set whether to enable deepening to pages, charts, and summaries.
Enterpriselogon (inherited from crystalreportviewerbase) object. Obtain or set logon information for enterprise reports. The deleiselogon attribute accepts the Crystal Enterprise logon tag (for example, "forte4 @ 639jvzn '* _} j1e/$ K0 $") or crystaldecisions. Enterprise. Framework. ispolicisesession session object.
Note that this attribute will be used in the future.
Boolean value of hasborder. Obtain or set whether the border is visible.
Boolean value of haspagenavigationlinks. Obtain or set whether the page navigation link is visible or hidden.
Boolean value of isdisplayheadings. Gets or sets whether the name of the report object is displayed at the top of each column.
Boolean value of isdisplaytitle. Obtain or set whether to display the report title.
Logoninfo (inherited from crystalreportviewerbase) tablelogoninfos. Obtains or sets the tablelogoninfos set.
Parameterfieldinfo (inherited from crystalreportviewerbase) parameterfields. Obtains or sets a set of parameter fields.
Boolean value of preservelayout. Obtain or set whether the report part maintains the layout in the original report.
Reportparts object. Gets or sets the list of report parts to be viewed in the Report Part viewer. You can use the reportpartsdefinition class to define the list of report parts.
In the "Report options" dialog box, you can set the Initial Report Part in the report file (*. rpt. In Crystal Reports, click the File menu, and then click report options ". In Visual Studio. NET, right-click the report, click report, and then click report options ".
For an example of how to add a report part to the viewer, see the reportpartsdefinition class.
Reportsource (inherited from crystalreportviewerbase) object. Obtain or set the report to be bound to the viewer.
The report source can be one of the following:
* The absolute path of the rpt file, for example, "C:/myreports/report. rpt ".
Uri starting with "RAS: //", for example, "RAS: // C:/report. rpt ". This opens the Report on the Report Application Server (RAS) and requires the RAS client. Take the used RAS server from the HKEY_LOCAL_MACHINE/software/crystal decisions/9.0/report APP/client SDK/defaultreportappserverconfigfile registry key.
A URI starting with "rassdk: //", for example, "rassdk: // C:/report. rpt ". This will open the Report on the client and then transfer the file to the server. The report source requires the RAS client. The RAS server used is taken from the ultreportappserverconfigfile registry key.
Uri starting with "CEIS: // @ APS/#115. This report source uses the infoobject ID of the report to open the report from the Crystal Enterprise APS server. You need to set the enterpriselogon attribute of the viewer to specify the enterprise login information.
Note that you must have the crystal enterprise. Net client installed to use this function.
The URI that points to the "http: // machinename/directory/WebService. asmx" Format of the report web service. To specify logon information for the web service, use the soaphttpclientprotocol agent generated by wsdl.exe or vs. net, or use crystaldecisions. Shared. remotereportproxy.
Untyped reportdocument object.
For more information, see the untyped report component.
Strong reportdocument (cached and Uncached ).
For more information, see the strong report component in the web project.
A enterprisereportdocument object that accepts document URIs in one of the following formats:
"Ras: // C:/report. rpt"
"Rassdk: // C:/report. rpt"
"CEIS: // @ APS/#115"
You must have the crystal enterprise. Net client installed to use this function. You must use the enterprisereportdocument. iseisesession attribute or the enterprisereportdocument. logoninfo attribute to specify the enterprise logon information. We recommend that you log on to enterprise once during a request in a web application. Then, the enterprise login tag or isenterprisesession will be passed in each object or viewer used in the request.
Crystaldecisions. reportappserver. clientdoc. reportclientdocument object. This is only the. NET InterOP package of the COM reportclientdocument class. If you do not need the easy-to-use design-time function of enterprisereportdocument, you can use this object instead.
Soaphttpclientprotocol or crystaldecisions. Shared. remotereportproxy object with a URL similar to "http: // myserver/serverproject/My reportservice. asmx. You can use the credentials attribute to specify the Authentication Settings for the Web server.
For more information, see Web Service reports.
Reportsourceclassfactoryname (inherited from crystalreportviewerbase) string. Obtain or set the information required to create an internal reportsource object. This object determines how the viewer uses the report source. The current default value is "crystaldecisions. reportsource. reportsourcefactory, crystaldecisions. reportsource, version = 9.2.3300.0, culture = neutral, publickeytoken = 692fbea5521e1304 ".
Note that this attribute will be used in the future.
Reporttitle string. Obtain or set the report title.
Rotatesections Boolean value. Gets or sets whether to rotate a report part list. This means that the column will become a row, and the row will become a column.
Selectionformula (inherited from crystalreportviewerbase) string. Obtain or set the record Selection Formula for the report.
Zoomfactor int32. Gets or sets the report scaling level.
Public instance method
Isfirstpage specifies whether the current page is the first page of the report.
Islastpage specifies whether the current page is the last page of the report.
Nextpage displays the next page of the report.
Prevpage displays the previous page of the report.
Refresh refresh the report displayed in the viewer.
Instance events
Afterrender (inherited from crystalreportviewerbase) events are activated when report rendering is complete.
Afterrendercontent (inherited from crystalreportviewerbase) events are activated when Report Content Rendering is complete.
The afterrenderobject (inherited from crystalreportviewerbase) event is activated when the report object is rendered.
Beforerender (inherited from crystalreportviewerbase) events are activated when report rendering starts.
Beforerendercontent (inherited from crystalreportviewerbase) events are activated when Report Content Rendering starts.
Beforerenderobject (inherited from crystalreportviewerbase) events are activated when the report object rendering process starts.
The chartdrilldown event is activated after the image is deepened.
The fielddrilldown event is activated after the group is deepened.
Onrenderscript (inherited from crystalreportviewerbase) events are activated when HTML scripts are generated.
Onrenderstyle (inherited from crystalreportviewerbase) events are activated when the HTML style class is generated.
The reportpartbookmarknavigation event is activated after you navigate to the report component of the same report or another report.