SlideShare ist ein Scribd-Unternehmen logo
1 von 25
Downloaden Sie, um offline zu lesen
Crystal Reports™ 9
Developer’s Guide
Crystal Decisions, Inc.
895 Emerson St.
Palo Alto
California, USA 94301
Copyright © 2002 Crystal Decisions, Inc., 895 Emerson St., Palo Alto, California,
USA 94301. All rights reserved.
Issue 1.
No part of this documentation may be stored in a retrieval system, transmitted or
reproduced in any way, except in accordance with the terms of the applicable
software license agreement. This documentation contains proprietary information
of Crystal Decisions, Inc., and/or its suppliers.
Trademark Acknowledgements
© 2002 Crystal Decisions, Inc. All rights reserved. Crystal Decisions, Crystal,
Crystal Reports, Crystal Enterprise, Seagate Info, Seagate Software, Seagate, and
the Seagate and Crystal logos are trademarks or registered trademarks of Crystal
Decisions, Inc. and/or Seagate Technology, Inc. All other trademarks referenced
are the property of their respective owner.
Crystal Reports 9 Developer’s Guide i
Contents
Chapter 1: Overview
Crystal Reports developer components ............................................. 2
Which SDK should you use? ................................................................................. 2
Which viewer should you use? .............................................................................. 3
Migrating from the RDC to RAS .........................................................4
Legacy components ...........................................................................4
Product registration ...........................................................................4
Crystal Care technical support ...........................................................5
Crystal Training ................................................................................. 5
Crystal Consulting .............................................................................. 5
Chapter 2: Developer Application Scenarios
RAS scenarios ................................................................................... 8
Crystal Reports for Visual Studio .NET scenarios .............................. 9
Chapter 3: Viewers
Conceptual overview of Crystal Report Viewers .............................. 12
Common viewer features ..................................................................................... 12
Viewer feature descriptions ............................................................. 13
Viewer feature comparison .............................................................. 14
Chapter 4: Additional Information
Crystal Reports ................................................................................ 18
RAS .................................................................................................. 18
Crystal Reports for .NET .................................................................. 19
Crystal Decisions Developers Zone ................................................. 19
Index ................................................................................. 21
ii Crystal Reports 9 Developer’s Guide
Crystal Reports 9 Developer’s Guide 1
Overview 1
This chapter describes the Software Development Kits
(SDKs) and viewers available in Crystal Reports 9. It tells
you what each SDK can be used for. Finally, it provides
product registration and contact information.
Crystal Reports developer components
2 Crystal Reports 9 Developer’s Guide
Crystal Reports developer components
Crystal Reports 9 includes new developer components. If you’ve used Crystal
Reports in the past, you may already know which SDK you want to use. If you are
new to Crystal Reports, or if you want to migrate from the Report Designer
Component to a more web-friendly solution, this guide will help you decide which
components you should use.
The SDKs available are:
• COM Report Application Server (RAS) SDK.
• Java Report Application Server (RAS) SDK.
• Report Designer Component (RDC) SDK.
• Crystal Reports SDK for Visual Studio .NET.
Licensing and Distribution
There are licensing and distribution considerations you should be aware of if you
are developing an application using Crystal Reports. Please go to our web site for
detailed information:
http://www.crystaldecisions.com/products/crystalreports/licensing/
Which SDK should you use?
There are many factors to be considered when deciding which SDK or viewer to use.
If you want to display reports on your web site and let your users/customers do
basic reporting through their browsers, you will use the basic Report Application
Server (RAS) and the corresponding viewers. All the RAS object model components
are available in COM and Java. You can use JavaScript or VBScript to write your
web application.
RAS provides a rich set of server-based reporting services, enabling you to
integrate reporting into your custom web applications.
If you’re looking for a more scalable, interactive web solution to reporting, you can
use the full RAS SDK (which includes additional API calls and flexible deployment
capabilities), available with the Advanced edition. This choice allows you to write
your own application and customize any of the viewers.
RAS is also available with Crystal Enterprise to provide a rich set of server-based
reporting services, enabling you to integrate reporting into your custom web
applications.
The Report Application Server provides a base set of Crystal Enterprise services,
focused on report processing, application integration, and run-time report
modification:
• Rich Java and COM SDK for application integration.
• Embeddable server-side report viewer control.
• Extensible, multi-threaded processing server.
1: Overview
Crystal Reports 9 Developer’s Guide 3
Applications built using the Report Application Server can be seamlessly extended
to leverage additional Crystal Enterprise services.
If you’re working solely with rich-client or desktop applications, you want to use
the RDC. The RDC is COM-based and will work with any COM-compliant
development environments, such as Visual Basic, VC++, or Delphi. For more
information on the RDC and a detailed technical reference, see the Crystal Reports
Developer’s Help (CrystalDevHelp.chm).
Included in this version of Crystal Reports is an update for the .NET Crystal Report
components, as well as new viewers like the Mobile Report Part Viewer. If you’re
working on the .NET platform you should use these updated components. .NET
Crystal Reports components can be used for both rich-client windows applications
and zero-client web solutions.
You can also extend the .NET model to use the RAS SDK for more advanced
functionality in your report server.
Which viewer should you use?
There are two developer editions of Crystal Reports:
• Developer edition.
• Advanced edition.
In the Developer edition, you can use the viewers and the viewer APIs in your
application to view reports. In addition, you have limited access through the RAS
SDK to set the data source and parameter field information. In the Advanced
edition, you can use the RAS API to add “create” and “modify” capability to the
viewers in your application.
The following viewers are available:
• Report Page Viewer—COM, Java, and .NET
If you’re looking for basic web reporting functionality, the Report Page Viewer
should be sufficient. This viewer renders a page-by-page view of your report.
• Interactive Viewer—COM and Java.
If you want more advanced searching and analysis functionality in your
application, you can use the Interactive Viewer. It lets your users perform
searches using Boolean operators on the data saved with the report.
• Report Part Viewer—COM, Java, and .NET
If you want to view individual report parts in your application, use the Report
Part Viewer.
• Mobile Report Part Viewer—COM, Java, and .NET
This viewer allows you to deliver reports to wireless devices, such as cellular
phones and PDAs.
Migrating from the RDC to RAS
4 Crystal Reports 9 Developer’s Guide
All viewers can view Report Web Services, Crystal Enterprise Report Application
Server (CERAS) documents, and reports from the Crystal Enterprise report-
management system.
Migrating from the RDC to RAS
If you have an existing application that uses the RDC, there are many benefits to RAS:
• RAS provides report creation in a multi-tier environment. It provides a rich set
of report-creation APIs for integration with your application while you push
the report processing to a Report Server.
• The rich set of Report Creation APIs are scriptable, multi-threaded, and are
available in both COM and Java.
For detailed information on how to migrate, please go to the Report Application
Server Launchpad and look at the startup pages.
Legacy components
Some existing Crystal Reports developer components have been included in this
version for compatibility, but they are considered legacy or have been retired. If
you are using the Crystal Reports Print Engine (CRPE), or any other legacy Crystal
Reports SDK component, you should consider upgrading to RAS or the RDC. For
more information, see the topic “Retired Developer APIs” in the Crystal Reports
Developer’s Help (CrystalDevHelp.chm).
Product registration
There are several ways you can register your product:
• Fill out the Product Registration form on the Crystal Decisions, Inc. web site at:
http://www.crystaldecisions.com/register/
• Print the Product Registration form and fax it to the registration fax number
closest to you. Crystal Decisions will then fax you a registration number that
can be entered into the product the next time you use it.
Registration fax numbers
USA/Canada +1 (604) 681-5147
United Kingdom +44 (0) 20 8231 0601
Australia +6 2 9955 7682
Germany +49 (0) 69 9509 6182
Hong Kong +852 2893 2727
Singapore +65 777 8786
Registration is required to access online or telephone technical support. In
addition, registering the product ensures that you are kept up-to-date with product
advancements.
1: Overview
Crystal Reports 9 Developer’s Guide 5
Crystal Care technical support
To find out about the technical support programs available for Crystal Reports:
• Consult the enclosed Crystal Care information card.
• Go to our support web site at:
http://support.crystaldecisions.com/crystalcare/
• Contact your regional office. For details, go to:
http://www.crystaldecisions.com/contact/offices.asp
Crystal Training
Whether you’re a developer, information technology professional, or business
user, we offer a wide range of Crystal Reports training courses designed to build
or enhance your existing skills. Courses are available online, at certified training
centers, or at your own site:
• For a complete list of training courses and special offers, visit:
http://www.crystaldecisions.com/training/
• Or contact your regional office. For details, go to:
http://www.crystaldecisions.com/offices/
Crystal Consulting
Our global team of certified consultants and consulting partners can guide you
through a corporate-wide solution—including strategy, design, integration and
deployment—for the fastest results, maximum performance, and increased
productivity.
• To learn more, visit:
http://www.crystaldecisions.com/consulting/
• Or contact your regional office. For details, go to:
http://www.crystaldecisions.com/offices/
Crystal Consulting
6 Crystal Reports 9 Developer’s Guide
Crystal Reports 9 Developer’s Guide 7
Developer Application Scenarios 2
This chapter provides some typical scenarios that show how
the different SDK components and viewers can be used.
RAS scenarios
8 Crystal Reports 9 Developer’s Guide
RAS scenarios
There are many different types of applications you can develop using RAS. Below
are just a couple of examples.
Sales report with drill down on charts
In a company’s web portal application, the IT department has created a web site that
contains daily company news and announcements. A dynamic Crystal report is
refreshed nightly to capture information about each sales representative’s progress
for the quarter. IT wants to display this report on its home web page, but since the
portal contains other company news, the report can only be given a space that is
approximately three inches by three inches. IT can design a report, using Crystal
Reports, that has a bar chart showing the progress for all sales regions. The same
report can also contain additional charts that show details for each region. Rather
than displaying the entire report within the limited space available, IT has chosen
to show just the regional sales chart using the RAS SDK. Each morning, when users
browse the company’s web site for new information, they can see the regional sales
chart. They can click the chart and see the drilldown information for the Eastern
region. The web page refreshes and preserves all other company news, but shows a
different chart—the new chart shows details of the sales in the Eastern region.
Ad hoc reporting over the web
A bookstore supplier is offering online book ordering to its vendors. The price of
each book varies depending on the time of year, the supply and demand ratio, the
customer type, and current promotions. This variance means that each vendor
could get a different price list depending on the time of the year, the volume
needed, and the type of book. All of these parameters are factored into the online
ordering application. The supplier uses the RAS SDK to run a generic report with
different parameters passed in. RAS then dynamically generates a database query
based on the parameters provided, applies this report with a vendor-defined
template, and delivers the book-pricing list to the customer in HTML. The vendor
then downloads this pricing list in PDF format and publishes it to its subsidiaries.
For sample applications, see the developer samples installed with Crystal Reports,
or go to the Developer Zone website at:
http://www.crystaldecisions.com/products/dev_zone/
2: Developer Application Scenarios
Crystal Reports 9 Developer’s Guide 9
Crystal Reports for Visual Studio .NET scenarios
There are many different types of applications you can develop using Crystal
Reports and .NET. Below are just a couple of examples.
Real estate report web service
You are the IT manager for a large real estate company that has a database
containing all the information about each property. There are associate real estate
partners around the world who are only allowed to see certain portions of the
information and only certain properties. You can expose or publish your data
using web services and give each partner company a login ID and a password. The
partners can go to the URL of the web service, using either a Winform or a
Webform viewer, enter their authentication information and they will be able to
view reports for their properties.
Reporting off live stock market data
You can write an application that delivers reports based on live stock market data.
You can extract information from a stock market web page, and produce a data
source that includes the stock information. You can then create your own
application to display a report that lists the top ten stocks that have had the highest
volume in the last hour or in the last day. You don’t have to have a data source
exposed to report off of; you can use any information from any web site. Another
benefit of using DataSets is that you don’t have to write your own driver.
For sample applications, see the developer samples installed with Crystal Reports,
or go to the Developer Zone website at:
http://www.crystaldecisions.com/products/dev_zone/
Crystal Reports for Visual Studio .NET scenarios
10 Crystal Reports 9 Developer’s Guide
Crystal Reports 9 Developer’s Guide 11
Viewers 3
This chapter describes each of the viewers available in
Crystal Reports.
Conceptual overview of Crystal Report Viewers
12 Crystal Reports 9 Developer’s Guide
Conceptual overview of Crystal Report Viewers
Crystal Reports provides viewers for COM, Java, and .NET environments. Each
viewer provides features that make it best suited for particular environments and
viewing requirements.
There are two developer editions of Crystal Reports:
• Developer edition.
• Advanced edition.
In the Developer edition, you can use the viewers and the viewer APIs in your
application to view reports. In addition, you have limited access through the RAS
SDK to set the data source and parameter field information. In the Advanced
edition, you can use the report creation API to add “create” and “modify”
capability to the viewers in your application.
Common viewer features
Crystal Reports provides numerous reporting features for data analysis and
presentation. Ideally, when a user accesses a report over the Web, the report
retains these features. It is important to select the appropriate report viewer to
render the report with its design features intact.
The majority of the report viewers provide the following features:
• Drill down on fields.
• Drill down on summarized data.
• View charts.
• Drill down on graphs.
• View subreports.
• Drill down on on-demand subreports.
• Drill down on subreports with saved data.
Because they are highly specialized, the Report Part viewers do not fully provide
all the above features. Since subreports cannot be embedded in report parts, the
Report Part viewers require no features specific to subreports. The .NET Mobile
Report Part Viewer provides a text interface, so it is not possible to view graphs.
Embedded maps
The capability to view and drill down on maps embedded in reports is a feature
available in several report viewers. This feature requires the mapping DLLs to be
installed on the RAS server or the map will not be displayed in the report.
3: Viewers
Crystal Reports 9 Developer’s Guide 13
Viewer feature descriptions
The following table describes the features that are used to differentiate the
particular capabilities of each report viewer.
When deciding on the report viewer technology to use in your web application,
you should consider the reporting features provided by each report viewer and be
aware of any limitations that might be imposed by a particular web technology.
Feature Description
Boolean Search Searches report fields using Boolean and comparison operators.
Can Change View Can change the view of the report by picking from the view list.
Close Button Provides a button to close the report.
Export Button Provides a button to export the report. Export formats include
RPT, Microsoft Word, Microsoft Excel, HTML, PDF, and RTF.
Toggle Group Tree Shows or hides the group tree.
Highlight Highlights drilldown object or first occurrence of search text.
Logon or Parameter Prompt Prompts for logon or parameters.
Maps Allows viewing of and drilldown on embedded maps. This
feature requires the mapping DLLs to be installed on the RAS
server or the map will not be displayed in the report.
Navigation via Hyperlink Navigates to another page in the same report or in another report
via a hyperlink.
Page Navigation Navigates to different pages in the report.
Print Button Provides a button to print the report.
Text Search Searches report fields for given string.
Render Event Can fire an event on rendering.
Zero Client Does not require client-side software to operate.
Mobile/PDA output Produces output for mobile or PDA devices.
Zoom Zooms to desired magnification.
Viewer feature comparison
14 Crystal Reports 9 Developer’s Guide
Viewer feature comparison
The following table describes the particular capabilities of each report viewer.
Crystal report
viewer
Description
Boolean
Search
Can
Change
View
Close
Button
Export
Button
Toggle
Group
Tree
Highlight
Logon
or
Parameter
Prompt
Maps
Navigation
via
Hyperlink
Page
Navigation
Print
Button
Render
Event
Text
Search
Zero
Client
Mobile/PDA
Output
Zoom
COM Report
Page Viewer
Provides basic web reporting
viewer capabilities.
X X X X X X X X X X X X X
COM
Interactive
Viewer
Provides all the capabilities
of the COM Report Page
Viewer, plus the ability to do
a Boolean search on the
current report.
X X X X X X X X X X X X X
COM Report
Part Viewer
Provides the ability to view
individual report parts,
including charts, text, and
fields.
X X X X X X X
ActiveX
Viewer
Provides basic viewer
capabilities.
X X X X X X X X X X X
Java
Java Report
Page Viewer
Provides basic web reporting
viewer capabilities.
X X X X X X X X X X X X X X
Java
Interactive
Viewer
Provides all the capabilities
of the Java Report Page
Viewer, plus the ability to do
a Boolean Search on the
current report.
X X X X X X X X X X X X X X
Java Report
Part Viewer
Provides the capability of
viewing individual report
parts, including charts, text
and fields.
X X X X X X
Java Viewer Provides basic viewer
capabilities.
X X X X X X X X X X X
3: Viewers
Crystal Reports 9 Developer’s Guide 15
Smart Tag Parsing
A Crystal Reports smart tag allows you to integrate Crystal reporting technology
into Microsoft Office XP documents. Users can embed a link to a report from
within Office XP programs by copying and pasting a report part into an Office XP
document. By clicking on the smart tag object in Word XP documents, Excel XP
spreadsheets or Outlook XP emails, users can instantly view the original Crystal
report from which the data was taken. Smart tag objects are report parts such as
chart, text, or field objects. These three kinds of objects can be copied from a report
and pasted into a Word XP document or Outlook XP email. Text and field objects
can be copied and pasted into an Excel XP spreadsheet.
Note: It is not possible to copy and paste a chart into an Excel XP spreadsheet.
Smart tag parsing is available for COM and Java. It works in conjunction with the
Report and Report Part viewers.
.NET
.NET Webform
Viewer
Provides basic web reporting
viewer capabilities.
X X X X X X X X X X
.NET Webform
Part Viewer
Provides the capability of
viewing individual report
parts, such as charts.
X X X
.NET Winform
Viewer
Provides basic viewer
capabilities for Windows
applications.
X X X X X X X X X X
.NET Mobile
Report Part
Viewer
Provides the capability to
view reports on mobile
devices.
X X
Crystal report
viewer
Description
Boolean
Search
Can
Change
View
Close
Button
Export
Button
Toggle
Group
Tree
Highlight
Logon
or
Parameter
Prompt
Maps
Navigation
via
Hyperlink
Page
Navigation
Print
Button
Render
Event
Text
Search
Zero
Client
Mobile/PDA
Output
Zoom
Viewer feature comparison
16 Crystal Reports 9 Developer’s Guide
Crystal Reports 9 Developer’s Guide 17
Additional Information 4
This chapter lists and describes additional information and
resources available.
Crystal Reports
18 Crystal Reports 9 Developer’s Guide
Crystal Reports
• CrystalDevHelp.chm: C:Program FilesCrystal DecisionsCrystal Reports
9Developer FilesHelpEn
This file is the main developer help file for Crystal Reports. It contains all
technical reference material for the RDC, information on using the Embeddable
designer, user-defined functions, and Active Data. It also provides diagrams of
all relevant object models.
• Legacy.chm: C:Program FilesCrystal DecisionsCrystal Reports
9Developer FilesHelpEn
This help file contains reference material for the Crystal Reports Print Engine.
• License.chm: C:Program FilesCrystal DecisionsCrystal Reports
9Developer FilesHelpEn
This file contains information on the License Manager installed with Crystal
Reports.
• Runtime.chm: C:Program FilesCrystal DecisionsCrystal Reports
9Developer FilesHelpEn
This help file explains the runtime dependencies that you should be aware of
when distributing your application.
• Techref.pdf: on the CD in the “Docs” directory.
This file is a PDF version of the printed Technical Reference Guide. It contains all
of the reference material for the RDC, including object model information.
RAS
• RAS_SDK.chm: C:Program FilesCrystal DecisionsReport Application
Server 9HelpEn
This help file describes the web development tools and components that are
available in the Report Application Server COM SDK.
• Report_Viewers.chm: C:Program FilesCrystal DecisionsReport
Application Server 9HelpEn
This help file describes the viewer development tools and components that are
available through the COM web reporting viewers, ActiveX Viewer, and the
Crystal Report Viewer for Java.
• RAS JavaDocs in HTML format: C:Program FilesCrystal DecisionsReport
Application Server 9HelpEnJavaDocsRAS
The RAS JavaDocs contain the documentation for the RAS Java SDK.
• Viewer JavaDocs in HTML format: C:Program FilesCrystal
DecisionsReport Application Server 9HelpEnJavaDocsViewer
The Viewer JavaDocs contain the API reference documentation for the Java
Viewer APIs.
4: Additional Information
Crystal Reports 9 Developer’s Guide 19
Crystal Reports for .NET
If you develop with the .NET platform, and you install Crystal Reports 9, you can
access the new help from the Crystal Reports 9 node in the Visual Studio .NET
Help Contents window. The updated help can also be viewed through the MSDN
Visual Studio .NET viewer.
Crystal Decisions Developers Zone
The Crystal Decisions Developers Zone is the key place for the latest development
news. Updated weekly, you will find this to be an invaluable resource on the latest
features, issues, and tips and tricks.
http://www.crystaldecisions.com/products/dev_zone/
Crystal Decisions Developers Zone
20 Crystal Reports 9 Developer’s Guide
Crystal Reports 9 Developer’s Guide 21
Index
A
additional information
Crystal Reports................................................... 18
Developers Zone................................................ 19
RAS.................................................................... 18
Visual Studio .NET ............................................. 19
D
developer components
described ............................................................. 2
legacy .................................................................. 4
P
product registration..................................................... 4
R
RAS, scenarios............................................................8
registration
fax numbers ......................................................... 4
of product ............................................................4
web site ............................................................... 4
Report Viewers ......................................................... 12
choosing which to use .........................................3
described ........................................................... 13
embedded maps................................................. 12
feature comparison ............................................ 14
features .............................................................. 12
Smart Tag Parsing............................................... 15
S
scenarios
RAS...................................................................... 8
Visual Studio .NET ............................................... 9
SDKs...........................................................................2
choosing which to use .........................................2
support
product registration.............................................. 4
technical.............................................................. 6
web site ............................................................... 6
T
technical support........................................................6
V
Visual Studio .NET, scenarios .....................................9
W
web sites
consulting............................................................ 6
training ................................................................ 6

Weitere ähnliche Inhalte

Ă„hnlich wie DevGuide.pdf

Tools Risk Analysis - Initial Merger Assessments
Tools Risk Analysis - Initial Merger AssessmentsTools Risk Analysis - Initial Merger Assessments
Tools Risk Analysis - Initial Merger AssessmentsMargaret D.
 
Activereports for -net_user_guide
Activereports for -net_user_guideActivereports for -net_user_guide
Activereports for -net_user_guideGuhiga nezza s. a
 
Modern Application Development for the Enterprise
Modern Application Development for the EnterpriseModern Application Development for the Enterprise
Modern Application Development for the EnterpriseJuarez Junior
 
Adobe Flex Development and Backend Integration With BlazeDS
Adobe Flex Development and Backend Integration With BlazeDSAdobe Flex Development and Backend Integration With BlazeDS
Adobe Flex Development and Backend Integration With BlazeDSAbdulbasit Gulsen
 
Building Cloud Native Applications with Oracle Autonomous Database.
Building Cloud Native Applications with Oracle Autonomous Database.Building Cloud Native Applications with Oracle Autonomous Database.
Building Cloud Native Applications with Oracle Autonomous Database.Oracle Developers
 
MySQL day Dublin - OCI & Application Development
MySQL day Dublin - OCI & Application DevelopmentMySQL day Dublin - OCI & Application Development
MySQL day Dublin - OCI & Application DevelopmentHenry J. Kröger
 
Smp agentry app_development
Smp agentry app_developmentSmp agentry app_development
Smp agentry app_developmentGanesh Kumar
 
OneNeck ERP capabilities_2016
OneNeck ERP capabilities_2016OneNeck ERP capabilities_2016
OneNeck ERP capabilities_2016Scott Fitzgerald
 
Rajeev Ranjan_CV (Java Fullstack)
Rajeev Ranjan_CV (Java Fullstack)Rajeev Ranjan_CV (Java Fullstack)
Rajeev Ranjan_CV (Java Fullstack)Rajeev Singh
 
Salesforce Multitenant Architecture: How We Do the Magic We Do
Salesforce Multitenant Architecture: How We Do the Magic We DoSalesforce Multitenant Architecture: How We Do the Magic We Do
Salesforce Multitenant Architecture: How We Do the Magic We DoSalesforce Developers
 
ResumeAngelAlejandro
ResumeAngelAlejandroResumeAngelAlejandro
ResumeAngelAlejandroAngel Alejandro
 
Building einstein analytics apps uk-compressed
Building einstein analytics apps   uk-compressedBuilding einstein analytics apps   uk-compressed
Building einstein analytics apps uk-compressedrikkehovgaard
 

Ă„hnlich wie DevGuide.pdf (20)

SaurabhKasyap
SaurabhKasyapSaurabhKasyap
SaurabhKasyap
 
Rtc user en
Rtc user enRtc user en
Rtc user en
 
Sudeshna Ghosh Dastidar-Resume
Sudeshna Ghosh Dastidar-ResumeSudeshna Ghosh Dastidar-Resume
Sudeshna Ghosh Dastidar-Resume
 
Tools Risk Analysis - Initial Merger Assessments
Tools Risk Analysis - Initial Merger AssessmentsTools Risk Analysis - Initial Merger Assessments
Tools Risk Analysis - Initial Merger Assessments
 
Activereports for -net_user_guide
Activereports for -net_user_guideActivereports for -net_user_guide
Activereports for -net_user_guide
 
Modern Application Development for the Enterprise
Modern Application Development for the EnterpriseModern Application Development for the Enterprise
Modern Application Development for the Enterprise
 
Adobe Flex Development and Backend Integration With BlazeDS
Adobe Flex Development and Backend Integration With BlazeDSAdobe Flex Development and Backend Integration With BlazeDS
Adobe Flex Development and Backend Integration With BlazeDS
 
Smarter Retail
Smarter RetailSmarter Retail
Smarter Retail
 
Building Cloud Native Applications with Oracle Autonomous Database.
Building Cloud Native Applications with Oracle Autonomous Database.Building Cloud Native Applications with Oracle Autonomous Database.
Building Cloud Native Applications with Oracle Autonomous Database.
 
MySQL day Dublin - OCI & Application Development
MySQL day Dublin - OCI & Application DevelopmentMySQL day Dublin - OCI & Application Development
MySQL day Dublin - OCI & Application Development
 
Soap toolkits
Soap toolkitsSoap toolkits
Soap toolkits
 
BizViz - CA PPM Analytics
BizViz - CA PPM AnalyticsBizViz - CA PPM Analytics
BizViz - CA PPM Analytics
 
Smp agentry app_development
Smp agentry app_developmentSmp agentry app_development
Smp agentry app_development
 
OneNeck ERP capabilities_2016
OneNeck ERP capabilities_2016OneNeck ERP capabilities_2016
OneNeck ERP capabilities_2016
 
Rajeev Ranjan_CV (Java Fullstack)
Rajeev Ranjan_CV (Java Fullstack)Rajeev Ranjan_CV (Java Fullstack)
Rajeev Ranjan_CV (Java Fullstack)
 
harish_resume
harish_resumeharish_resume
harish_resume
 
Salesforce Multitenant Architecture: How We Do the Magic We Do
Salesforce Multitenant Architecture: How We Do the Magic We DoSalesforce Multitenant Architecture: How We Do the Magic We Do
Salesforce Multitenant Architecture: How We Do the Magic We Do
 
Sakshi Report
Sakshi ReportSakshi Report
Sakshi Report
 
ResumeAngelAlejandro
ResumeAngelAlejandroResumeAngelAlejandro
ResumeAngelAlejandro
 
Building einstein analytics apps uk-compressed
Building einstein analytics apps   uk-compressedBuilding einstein analytics apps   uk-compressed
Building einstein analytics apps uk-compressed
 

Mehr von Bernabe Machado

Mehr von Bernabe Machado (7)

License.pdf
License.pdfLicense.pdf
License.pdf
 
TECHREF.PDF
TECHREF.PDFTECHREF.PDF
TECHREF.PDF
 
WEBGUIDE.PDF
WEBGUIDE.PDFWEBGUIDE.PDF
WEBGUIDE.PDF
 
EVALUATE.PDF
EVALUATE.PDFEVALUATE.PDF
EVALUATE.PDF
 
livrosdeamor.com.br-3520-john-deere.pdf
livrosdeamor.com.br-3520-john-deere.pdflivrosdeamor.com.br-3520-john-deere.pdf
livrosdeamor.com.br-3520-john-deere.pdf
 
MANUAL_F440.pdf
MANUAL_F440.pdfMANUAL_F440.pdf
MANUAL_F440.pdf
 
Lista
ListaLista
Lista
 

KĂĽrzlich hochgeladen

Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendArshad QA
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfCionsystems
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfWilly Marroquin (WillyDevNET)
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
Clustering techniques data mining book ....
Clustering techniques data mining book ....Clustering techniques data mining book ....
Clustering techniques data mining book ....ShaimaaMohamedGalal
 

KĂĽrzlich hochgeladen (20)

Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and Backend
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdf
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
Clustering techniques data mining book ....
Clustering techniques data mining book ....Clustering techniques data mining book ....
Clustering techniques data mining book ....
 

DevGuide.pdf

  • 1. Crystal Reports™ 9 Developer’s Guide Crystal Decisions, Inc. 895 Emerson St. Palo Alto California, USA 94301
  • 2. Copyright © 2002 Crystal Decisions, Inc., 895 Emerson St., Palo Alto, California, USA 94301. All rights reserved. Issue 1. No part of this documentation may be stored in a retrieval system, transmitted or reproduced in any way, except in accordance with the terms of the applicable software license agreement. This documentation contains proprietary information of Crystal Decisions, Inc., and/or its suppliers. Trademark Acknowledgements © 2002 Crystal Decisions, Inc. All rights reserved. Crystal Decisions, Crystal, Crystal Reports, Crystal Enterprise, Seagate Info, Seagate Software, Seagate, and the Seagate and Crystal logos are trademarks or registered trademarks of Crystal Decisions, Inc. and/or Seagate Technology, Inc. All other trademarks referenced are the property of their respective owner.
  • 3. Crystal Reports 9 Developer’s Guide i Contents Chapter 1: Overview Crystal Reports developer components ............................................. 2 Which SDK should you use? ................................................................................. 2 Which viewer should you use? .............................................................................. 3 Migrating from the RDC to RAS .........................................................4 Legacy components ...........................................................................4 Product registration ...........................................................................4 Crystal Care technical support ...........................................................5 Crystal Training ................................................................................. 5 Crystal Consulting .............................................................................. 5 Chapter 2: Developer Application Scenarios RAS scenarios ................................................................................... 8 Crystal Reports for Visual Studio .NET scenarios .............................. 9 Chapter 3: Viewers Conceptual overview of Crystal Report Viewers .............................. 12 Common viewer features ..................................................................................... 12 Viewer feature descriptions ............................................................. 13 Viewer feature comparison .............................................................. 14 Chapter 4: Additional Information Crystal Reports ................................................................................ 18 RAS .................................................................................................. 18 Crystal Reports for .NET .................................................................. 19 Crystal Decisions Developers Zone ................................................. 19 Index ................................................................................. 21
  • 4. ii Crystal Reports 9 Developer’s Guide
  • 5. Crystal Reports 9 Developer’s Guide 1 Overview 1 This chapter describes the Software Development Kits (SDKs) and viewers available in Crystal Reports 9. It tells you what each SDK can be used for. Finally, it provides product registration and contact information.
  • 6. Crystal Reports developer components 2 Crystal Reports 9 Developer’s Guide Crystal Reports developer components Crystal Reports 9 includes new developer components. If you’ve used Crystal Reports in the past, you may already know which SDK you want to use. If you are new to Crystal Reports, or if you want to migrate from the Report Designer Component to a more web-friendly solution, this guide will help you decide which components you should use. The SDKs available are: • COM Report Application Server (RAS) SDK. • Java Report Application Server (RAS) SDK. • Report Designer Component (RDC) SDK. • Crystal Reports SDK for Visual Studio .NET. Licensing and Distribution There are licensing and distribution considerations you should be aware of if you are developing an application using Crystal Reports. Please go to our web site for detailed information: http://www.crystaldecisions.com/products/crystalreports/licensing/ Which SDK should you use? There are many factors to be considered when deciding which SDK or viewer to use. If you want to display reports on your web site and let your users/customers do basic reporting through their browsers, you will use the basic Report Application Server (RAS) and the corresponding viewers. All the RAS object model components are available in COM and Java. You can use JavaScript or VBScript to write your web application. RAS provides a rich set of server-based reporting services, enabling you to integrate reporting into your custom web applications. If you’re looking for a more scalable, interactive web solution to reporting, you can use the full RAS SDK (which includes additional API calls and flexible deployment capabilities), available with the Advanced edition. This choice allows you to write your own application and customize any of the viewers. RAS is also available with Crystal Enterprise to provide a rich set of server-based reporting services, enabling you to integrate reporting into your custom web applications. The Report Application Server provides a base set of Crystal Enterprise services, focused on report processing, application integration, and run-time report modification: • Rich Java and COM SDK for application integration. • Embeddable server-side report viewer control. • Extensible, multi-threaded processing server.
  • 7. 1: Overview Crystal Reports 9 Developer’s Guide 3 Applications built using the Report Application Server can be seamlessly extended to leverage additional Crystal Enterprise services. If you’re working solely with rich-client or desktop applications, you want to use the RDC. The RDC is COM-based and will work with any COM-compliant development environments, such as Visual Basic, VC++, or Delphi. For more information on the RDC and a detailed technical reference, see the Crystal Reports Developer’s Help (CrystalDevHelp.chm). Included in this version of Crystal Reports is an update for the .NET Crystal Report components, as well as new viewers like the Mobile Report Part Viewer. If you’re working on the .NET platform you should use these updated components. .NET Crystal Reports components can be used for both rich-client windows applications and zero-client web solutions. You can also extend the .NET model to use the RAS SDK for more advanced functionality in your report server. Which viewer should you use? There are two developer editions of Crystal Reports: • Developer edition. • Advanced edition. In the Developer edition, you can use the viewers and the viewer APIs in your application to view reports. In addition, you have limited access through the RAS SDK to set the data source and parameter field information. In the Advanced edition, you can use the RAS API to add “create” and “modify” capability to the viewers in your application. The following viewers are available: • Report Page Viewer—COM, Java, and .NET If you’re looking for basic web reporting functionality, the Report Page Viewer should be sufficient. This viewer renders a page-by-page view of your report. • Interactive Viewer—COM and Java. If you want more advanced searching and analysis functionality in your application, you can use the Interactive Viewer. It lets your users perform searches using Boolean operators on the data saved with the report. • Report Part Viewer—COM, Java, and .NET If you want to view individual report parts in your application, use the Report Part Viewer. • Mobile Report Part Viewer—COM, Java, and .NET This viewer allows you to deliver reports to wireless devices, such as cellular phones and PDAs.
  • 8. Migrating from the RDC to RAS 4 Crystal Reports 9 Developer’s Guide All viewers can view Report Web Services, Crystal Enterprise Report Application Server (CERAS) documents, and reports from the Crystal Enterprise report- management system. Migrating from the RDC to RAS If you have an existing application that uses the RDC, there are many benefits to RAS: • RAS provides report creation in a multi-tier environment. It provides a rich set of report-creation APIs for integration with your application while you push the report processing to a Report Server. • The rich set of Report Creation APIs are scriptable, multi-threaded, and are available in both COM and Java. For detailed information on how to migrate, please go to the Report Application Server Launchpad and look at the startup pages. Legacy components Some existing Crystal Reports developer components have been included in this version for compatibility, but they are considered legacy or have been retired. If you are using the Crystal Reports Print Engine (CRPE), or any other legacy Crystal Reports SDK component, you should consider upgrading to RAS or the RDC. For more information, see the topic “Retired Developer APIs” in the Crystal Reports Developer’s Help (CrystalDevHelp.chm). Product registration There are several ways you can register your product: • Fill out the Product Registration form on the Crystal Decisions, Inc. web site at: http://www.crystaldecisions.com/register/ • Print the Product Registration form and fax it to the registration fax number closest to you. Crystal Decisions will then fax you a registration number that can be entered into the product the next time you use it. Registration fax numbers USA/Canada +1 (604) 681-5147 United Kingdom +44 (0) 20 8231 0601 Australia +6 2 9955 7682 Germany +49 (0) 69 9509 6182 Hong Kong +852 2893 2727 Singapore +65 777 8786 Registration is required to access online or telephone technical support. In addition, registering the product ensures that you are kept up-to-date with product advancements.
  • 9. 1: Overview Crystal Reports 9 Developer’s Guide 5 Crystal Care technical support To find out about the technical support programs available for Crystal Reports: • Consult the enclosed Crystal Care information card. • Go to our support web site at: http://support.crystaldecisions.com/crystalcare/ • Contact your regional office. For details, go to: http://www.crystaldecisions.com/contact/offices.asp Crystal Training Whether you’re a developer, information technology professional, or business user, we offer a wide range of Crystal Reports training courses designed to build or enhance your existing skills. Courses are available online, at certified training centers, or at your own site: • For a complete list of training courses and special offers, visit: http://www.crystaldecisions.com/training/ • Or contact your regional office. For details, go to: http://www.crystaldecisions.com/offices/ Crystal Consulting Our global team of certified consultants and consulting partners can guide you through a corporate-wide solution—including strategy, design, integration and deployment—for the fastest results, maximum performance, and increased productivity. • To learn more, visit: http://www.crystaldecisions.com/consulting/ • Or contact your regional office. For details, go to: http://www.crystaldecisions.com/offices/
  • 10. Crystal Consulting 6 Crystal Reports 9 Developer’s Guide
  • 11. Crystal Reports 9 Developer’s Guide 7 Developer Application Scenarios 2 This chapter provides some typical scenarios that show how the different SDK components and viewers can be used.
  • 12. RAS scenarios 8 Crystal Reports 9 Developer’s Guide RAS scenarios There are many different types of applications you can develop using RAS. Below are just a couple of examples. Sales report with drill down on charts In a company’s web portal application, the IT department has created a web site that contains daily company news and announcements. A dynamic Crystal report is refreshed nightly to capture information about each sales representative’s progress for the quarter. IT wants to display this report on its home web page, but since the portal contains other company news, the report can only be given a space that is approximately three inches by three inches. IT can design a report, using Crystal Reports, that has a bar chart showing the progress for all sales regions. The same report can also contain additional charts that show details for each region. Rather than displaying the entire report within the limited space available, IT has chosen to show just the regional sales chart using the RAS SDK. Each morning, when users browse the company’s web site for new information, they can see the regional sales chart. They can click the chart and see the drilldown information for the Eastern region. The web page refreshes and preserves all other company news, but shows a different chart—the new chart shows details of the sales in the Eastern region. Ad hoc reporting over the web A bookstore supplier is offering online book ordering to its vendors. The price of each book varies depending on the time of year, the supply and demand ratio, the customer type, and current promotions. This variance means that each vendor could get a different price list depending on the time of the year, the volume needed, and the type of book. All of these parameters are factored into the online ordering application. The supplier uses the RAS SDK to run a generic report with different parameters passed in. RAS then dynamically generates a database query based on the parameters provided, applies this report with a vendor-defined template, and delivers the book-pricing list to the customer in HTML. The vendor then downloads this pricing list in PDF format and publishes it to its subsidiaries. For sample applications, see the developer samples installed with Crystal Reports, or go to the Developer Zone website at: http://www.crystaldecisions.com/products/dev_zone/
  • 13. 2: Developer Application Scenarios Crystal Reports 9 Developer’s Guide 9 Crystal Reports for Visual Studio .NET scenarios There are many different types of applications you can develop using Crystal Reports and .NET. Below are just a couple of examples. Real estate report web service You are the IT manager for a large real estate company that has a database containing all the information about each property. There are associate real estate partners around the world who are only allowed to see certain portions of the information and only certain properties. You can expose or publish your data using web services and give each partner company a login ID and a password. The partners can go to the URL of the web service, using either a Winform or a Webform viewer, enter their authentication information and they will be able to view reports for their properties. Reporting off live stock market data You can write an application that delivers reports based on live stock market data. You can extract information from a stock market web page, and produce a data source that includes the stock information. You can then create your own application to display a report that lists the top ten stocks that have had the highest volume in the last hour or in the last day. You don’t have to have a data source exposed to report off of; you can use any information from any web site. Another benefit of using DataSets is that you don’t have to write your own driver. For sample applications, see the developer samples installed with Crystal Reports, or go to the Developer Zone website at: http://www.crystaldecisions.com/products/dev_zone/
  • 14. Crystal Reports for Visual Studio .NET scenarios 10 Crystal Reports 9 Developer’s Guide
  • 15. Crystal Reports 9 Developer’s Guide 11 Viewers 3 This chapter describes each of the viewers available in Crystal Reports.
  • 16. Conceptual overview of Crystal Report Viewers 12 Crystal Reports 9 Developer’s Guide Conceptual overview of Crystal Report Viewers Crystal Reports provides viewers for COM, Java, and .NET environments. Each viewer provides features that make it best suited for particular environments and viewing requirements. There are two developer editions of Crystal Reports: • Developer edition. • Advanced edition. In the Developer edition, you can use the viewers and the viewer APIs in your application to view reports. In addition, you have limited access through the RAS SDK to set the data source and parameter field information. In the Advanced edition, you can use the report creation API to add “create” and “modify” capability to the viewers in your application. Common viewer features Crystal Reports provides numerous reporting features for data analysis and presentation. Ideally, when a user accesses a report over the Web, the report retains these features. It is important to select the appropriate report viewer to render the report with its design features intact. The majority of the report viewers provide the following features: • Drill down on fields. • Drill down on summarized data. • View charts. • Drill down on graphs. • View subreports. • Drill down on on-demand subreports. • Drill down on subreports with saved data. Because they are highly specialized, the Report Part viewers do not fully provide all the above features. Since subreports cannot be embedded in report parts, the Report Part viewers require no features specific to subreports. The .NET Mobile Report Part Viewer provides a text interface, so it is not possible to view graphs. Embedded maps The capability to view and drill down on maps embedded in reports is a feature available in several report viewers. This feature requires the mapping DLLs to be installed on the RAS server or the map will not be displayed in the report.
  • 17. 3: Viewers Crystal Reports 9 Developer’s Guide 13 Viewer feature descriptions The following table describes the features that are used to differentiate the particular capabilities of each report viewer. When deciding on the report viewer technology to use in your web application, you should consider the reporting features provided by each report viewer and be aware of any limitations that might be imposed by a particular web technology. Feature Description Boolean Search Searches report fields using Boolean and comparison operators. Can Change View Can change the view of the report by picking from the view list. Close Button Provides a button to close the report. Export Button Provides a button to export the report. Export formats include RPT, Microsoft Word, Microsoft Excel, HTML, PDF, and RTF. Toggle Group Tree Shows or hides the group tree. Highlight Highlights drilldown object or first occurrence of search text. Logon or Parameter Prompt Prompts for logon or parameters. Maps Allows viewing of and drilldown on embedded maps. This feature requires the mapping DLLs to be installed on the RAS server or the map will not be displayed in the report. Navigation via Hyperlink Navigates to another page in the same report or in another report via a hyperlink. Page Navigation Navigates to different pages in the report. Print Button Provides a button to print the report. Text Search Searches report fields for given string. Render Event Can fire an event on rendering. Zero Client Does not require client-side software to operate. Mobile/PDA output Produces output for mobile or PDA devices. Zoom Zooms to desired magnification.
  • 18. Viewer feature comparison 14 Crystal Reports 9 Developer’s Guide Viewer feature comparison The following table describes the particular capabilities of each report viewer. Crystal report viewer Description Boolean Search Can Change View Close Button Export Button Toggle Group Tree Highlight Logon or Parameter Prompt Maps Navigation via Hyperlink Page Navigation Print Button Render Event Text Search Zero Client Mobile/PDA Output Zoom COM Report Page Viewer Provides basic web reporting viewer capabilities. X X X X X X X X X X X X X COM Interactive Viewer Provides all the capabilities of the COM Report Page Viewer, plus the ability to do a Boolean search on the current report. X X X X X X X X X X X X X COM Report Part Viewer Provides the ability to view individual report parts, including charts, text, and fields. X X X X X X X ActiveX Viewer Provides basic viewer capabilities. X X X X X X X X X X X Java Java Report Page Viewer Provides basic web reporting viewer capabilities. X X X X X X X X X X X X X X Java Interactive Viewer Provides all the capabilities of the Java Report Page Viewer, plus the ability to do a Boolean Search on the current report. X X X X X X X X X X X X X X Java Report Part Viewer Provides the capability of viewing individual report parts, including charts, text and fields. X X X X X X Java Viewer Provides basic viewer capabilities. X X X X X X X X X X X
  • 19. 3: Viewers Crystal Reports 9 Developer’s Guide 15 Smart Tag Parsing A Crystal Reports smart tag allows you to integrate Crystal reporting technology into Microsoft Office XP documents. Users can embed a link to a report from within Office XP programs by copying and pasting a report part into an Office XP document. By clicking on the smart tag object in Word XP documents, Excel XP spreadsheets or Outlook XP emails, users can instantly view the original Crystal report from which the data was taken. Smart tag objects are report parts such as chart, text, or field objects. These three kinds of objects can be copied from a report and pasted into a Word XP document or Outlook XP email. Text and field objects can be copied and pasted into an Excel XP spreadsheet. Note: It is not possible to copy and paste a chart into an Excel XP spreadsheet. Smart tag parsing is available for COM and Java. It works in conjunction with the Report and Report Part viewers. .NET .NET Webform Viewer Provides basic web reporting viewer capabilities. X X X X X X X X X X .NET Webform Part Viewer Provides the capability of viewing individual report parts, such as charts. X X X .NET Winform Viewer Provides basic viewer capabilities for Windows applications. X X X X X X X X X X .NET Mobile Report Part Viewer Provides the capability to view reports on mobile devices. X X Crystal report viewer Description Boolean Search Can Change View Close Button Export Button Toggle Group Tree Highlight Logon or Parameter Prompt Maps Navigation via Hyperlink Page Navigation Print Button Render Event Text Search Zero Client Mobile/PDA Output Zoom
  • 20. Viewer feature comparison 16 Crystal Reports 9 Developer’s Guide
  • 21. Crystal Reports 9 Developer’s Guide 17 Additional Information 4 This chapter lists and describes additional information and resources available.
  • 22. Crystal Reports 18 Crystal Reports 9 Developer’s Guide Crystal Reports • CrystalDevHelp.chm: C:Program FilesCrystal DecisionsCrystal Reports 9Developer FilesHelpEn This file is the main developer help file for Crystal Reports. It contains all technical reference material for the RDC, information on using the Embeddable designer, user-defined functions, and Active Data. It also provides diagrams of all relevant object models. • Legacy.chm: C:Program FilesCrystal DecisionsCrystal Reports 9Developer FilesHelpEn This help file contains reference material for the Crystal Reports Print Engine. • License.chm: C:Program FilesCrystal DecisionsCrystal Reports 9Developer FilesHelpEn This file contains information on the License Manager installed with Crystal Reports. • Runtime.chm: C:Program FilesCrystal DecisionsCrystal Reports 9Developer FilesHelpEn This help file explains the runtime dependencies that you should be aware of when distributing your application. • Techref.pdf: on the CD in the “Docs” directory. This file is a PDF version of the printed Technical Reference Guide. It contains all of the reference material for the RDC, including object model information. RAS • RAS_SDK.chm: C:Program FilesCrystal DecisionsReport Application Server 9HelpEn This help file describes the web development tools and components that are available in the Report Application Server COM SDK. • Report_Viewers.chm: C:Program FilesCrystal DecisionsReport Application Server 9HelpEn This help file describes the viewer development tools and components that are available through the COM web reporting viewers, ActiveX Viewer, and the Crystal Report Viewer for Java. • RAS JavaDocs in HTML format: C:Program FilesCrystal DecisionsReport Application Server 9HelpEnJavaDocsRAS The RAS JavaDocs contain the documentation for the RAS Java SDK. • Viewer JavaDocs in HTML format: C:Program FilesCrystal DecisionsReport Application Server 9HelpEnJavaDocsViewer The Viewer JavaDocs contain the API reference documentation for the Java Viewer APIs.
  • 23. 4: Additional Information Crystal Reports 9 Developer’s Guide 19 Crystal Reports for .NET If you develop with the .NET platform, and you install Crystal Reports 9, you can access the new help from the Crystal Reports 9 node in the Visual Studio .NET Help Contents window. The updated help can also be viewed through the MSDN Visual Studio .NET viewer. Crystal Decisions Developers Zone The Crystal Decisions Developers Zone is the key place for the latest development news. Updated weekly, you will find this to be an invaluable resource on the latest features, issues, and tips and tricks. http://www.crystaldecisions.com/products/dev_zone/
  • 24. Crystal Decisions Developers Zone 20 Crystal Reports 9 Developer’s Guide
  • 25. Crystal Reports 9 Developer’s Guide 21 Index A additional information Crystal Reports................................................... 18 Developers Zone................................................ 19 RAS.................................................................... 18 Visual Studio .NET ............................................. 19 D developer components described ............................................................. 2 legacy .................................................................. 4 P product registration..................................................... 4 R RAS, scenarios............................................................8 registration fax numbers ......................................................... 4 of product ............................................................4 web site ............................................................... 4 Report Viewers ......................................................... 12 choosing which to use .........................................3 described ........................................................... 13 embedded maps................................................. 12 feature comparison ............................................ 14 features .............................................................. 12 Smart Tag Parsing............................................... 15 S scenarios RAS...................................................................... 8 Visual Studio .NET ............................................... 9 SDKs...........................................................................2 choosing which to use .........................................2 support product registration.............................................. 4 technical.............................................................. 6 web site ............................................................... 6 T technical support........................................................6 V Visual Studio .NET, scenarios .....................................9 W web sites consulting............................................................ 6 training ................................................................ 6