Crystal Reports
Crystal Reports
Crystal Reports
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>Crystal</strong> <strong>Reports</strong><br />
Listing of Automation server sample applications in Microsoft<br />
Visual Basic<br />
Overview<br />
Contents<br />
This document provides a listing of all <strong>Crystal</strong> Report Engine Automation server<br />
(cpeaut16.dll/cpeaut32.dll) sample applications in Microsoft Visual Basic<br />
available on the <strong>Crystal</strong> Decisions Support web site. Included is a description of<br />
each application and a link to its download location.<br />
AUTOMATION SERVER SAMPLE APPLICATIONS IN MS VISUAL BASIC ............. 2<br />
Introductory applications.............................................................................2<br />
AutNTv.zip ........................................................................................................ 2<br />
vb416ole.zip ...................................................................................................... 2<br />
vb432ole.zip ...................................................................................................... 2<br />
vb532ole.zip ...................................................................................................... 2<br />
Using Active Data such as ADO recordsets ................................................3<br />
adosamp.zip ....................................................................................................... 3<br />
AutCDO.zip....................................................................................................... 3<br />
cdo_vb5.zip........................................................................................................ 3<br />
cdoAdv.zip......................................................................................................... 3<br />
CDOMulti.zip .................................................................................................... 3<br />
CDOSub.zip....................................................................................................... 4<br />
DAOSamp.zip.................................................................................................... 4<br />
RDOMulti.zip .................................................................................................... 4<br />
RDOSamp.zip.................................................................................................... 4<br />
vb416ole.zip ...................................................................................................... 5<br />
vb432ole.zip ...................................................................................................... 5<br />
vb532ole.zip ...................................................................................................... 5<br />
Connecting and changing location to the database.....................................5<br />
AutODBC.zip .................................................................................................... 5<br />
Report Events...............................................................................................5<br />
AutEvt.zip.......................................................................................................... 5<br />
vb532ole.zip ...................................................................................................... 6<br />
Exporting .....................................................................................................6<br />
AutExprt.zip ...................................................................................................... 6<br />
MDI applications .........................................................................................6<br />
AutMDI.zip........................................................................................................ 6<br />
Setting parameter fields ...............................................................................6<br />
SQLQuery.exe ................................................................................................... 6<br />
Using subreports..........................................................................................7<br />
5/19/2003 4:24 PM Copyright © 2001 <strong>Crystal</strong> Decisions, Inc. All Rights Reserved. Page 1
<strong>Crystal</strong> <strong>Reports</strong> Automation and VB Sample Applications<br />
AutSub.zip ......................................................................................................... 7<br />
Autsubrp.zip ...................................................................................................... 7<br />
CDOSub.zip....................................................................................................... 7<br />
CONTACTING CRYSTAL DECISIONS FOR TECHNICAL SUPPORT...................... 7<br />
Automation Server sample applications in MS Visual Basic<br />
Introductory applications<br />
AutNTv.zip<br />
A Microsoft Visual Basic 5 application using the <strong>Crystal</strong> Automation Server.<br />
This application demonstrates the basics of accessing and previewing a report at<br />
runtime. For use with Seagate <strong>Crystal</strong> <strong>Reports</strong> 6.0 32 bit and higher.<br />
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/AutNtv.zip.<br />
asp<br />
vb416ole.zip<br />
This is a Microsoft Visual Basic 4 16-bit application using the <strong>Crystal</strong><br />
Automation Server. The application gives a general overview of how to<br />
integrate the <strong>Crystal</strong> Automation Server into a Microsoft Visual Basic<br />
application. For use with Seagate <strong>Crystal</strong> <strong>Reports</strong> 6.0 16-bit and higher.<br />
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/vb416ole.zi<br />
p.asp<br />
vb432ole.zip<br />
This is a Microsoft Visual Basic 4 32-bit application using the <strong>Crystal</strong><br />
Automation Server. The application gives a general overview of how to<br />
integrate the <strong>Crystal</strong> Automation Server into a Microsoft Visual Basic<br />
application. For use with Seagate <strong>Crystal</strong> <strong>Reports</strong> 6.0 32-bit and higher.<br />
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/vb432ole.zi<br />
p.asp<br />
vb532ole.zip<br />
This is a Microsoft Visual Basic 5 application (supports objects with events)<br />
using the <strong>Crystal</strong> Automation Server. The application gives a general overview<br />
of how to integrate the <strong>Crystal</strong> Automation Server into a Microsoft Visual Basic<br />
application. For use with Seagate <strong>Crystal</strong> <strong>Reports</strong> 6.0 32-bit and higher.<br />
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/vb532ole.zi<br />
p.asp<br />
5/19/2003 4:24 PM Copyright © 2001 <strong>Crystal</strong> Decisions, Inc. All Rights Reserved. Page 2
<strong>Crystal</strong> <strong>Reports</strong> Automation and VB Sample Applications<br />
Using Active Data such as ADO recordsets<br />
adosamp.zip<br />
This is a Microsoft Visual Basic 5.0 application which uses the <strong>Crystal</strong> <strong>Reports</strong><br />
Automation Server and ActiveX Data Objects (ADO) version 1.0. The<br />
application demonstrates how to create a report off an ADO recordset.<br />
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/adosamp.zi<br />
p.asp<br />
AutCDO.zip<br />
A Microsoft Visual Basic 5 application using the <strong>Crystal</strong> Automation Server<br />
with the <strong>Crystal</strong> Data Object (CDO). CDO is used to enable reporting off of a<br />
Visual Basic memory array. For use with Seagate <strong>Crystal</strong> <strong>Reports</strong> 6 32 bit and<br />
higher.<br />
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/AutCDO.zi<br />
p.asp<br />
cdo_vb5.zip<br />
A Microsoft Visual Basic 5 application using the <strong>Crystal</strong> Automation Server<br />
with the <strong>Crystal</strong> Data Object (CDO). CDO is used to enable reporting off of a<br />
Visual Basic memory array. For use with Seagate <strong>Crystal</strong> <strong>Reports</strong> 6.0 32 bit or<br />
higher.<br />
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/cdo_vb5.zi<br />
p.asp<br />
cdoAdv.zip<br />
A Microsoft Visual Basic 5 application using the <strong>Crystal</strong> Automation Server<br />
with the <strong>Crystal</strong> Data Object (CDO). CDO is used to enable reporting off of a<br />
Visual Basic memory array. For use with Seagate <strong>Crystal</strong> <strong>Reports</strong> 6 32 bit and<br />
higher.<br />
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/cdoadv.zip.<br />
asp<br />
CDOMulti.zip<br />
A Microsoft Visual Basic 5 application using the <strong>Crystal</strong> Automation Server<br />
with the <strong>Crystal</strong> Data Object (CDO). This application creates 2 <strong>Crystal</strong> Data<br />
Object recordsets and includes a report based on two tables. Each corresponding<br />
recordset is passed to each table. For use with Seagate <strong>Crystal</strong> <strong>Reports</strong> 6.0 32 bit<br />
and higher.<br />
5/19/2003 4:24 PM Copyright © 2001 <strong>Crystal</strong> Decisions, Inc. All Rights Reserved. Page 3
<strong>Crystal</strong> <strong>Reports</strong> Automation and VB Sample Applications<br />
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/cdomulti.zi<br />
p.asp<br />
CDOSub.zip<br />
A Microsoft Visual Basic 5 application using the <strong>Crystal</strong> Automation Server<br />
with the <strong>Crystal</strong> Data Object (CDO). This application creates 2 <strong>Crystal</strong> Data<br />
Object recordsets and includes a report with a subreport. One recordset is passed<br />
to the main report and the second is passed to the subreport. For use with<br />
Seagate <strong>Crystal</strong> <strong>Reports</strong> 6.0 32 bit and higher.<br />
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/cdosub.zip.<br />
asp<br />
DAOSamp.zip<br />
This is a Microsoft Visual Basic 5 application using the <strong>Crystal</strong> Automation<br />
Server with Data Access Objects (DAO) 3.5. The application demonstates how<br />
to pass a DAO recordset to a report. For use with Seagate <strong>Crystal</strong> <strong>Reports</strong> 6.0 32<br />
bit or higher.<br />
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/DAOSamp.<br />
zip.asp<br />
RDOMulti.zip<br />
A Microsoft Visual Basic 5.0 application which uses the Seagate <strong>Crystal</strong><br />
<strong>Reports</strong> Automation Server and RDO 2.0. The application demonstrates how to<br />
report off of two RDO Recordset objects with a report based on two tables. The<br />
corresponding recordsets are passed to each table in the report.<br />
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/RDOMulti.<br />
zip.asp<br />
RDOSamp.zip<br />
A Microsoft Visual Basic 5 application using the <strong>Crystal</strong> Automation Server<br />
with Remote Data Objects (RDO) 2.0. The application demonstrates how to<br />
bind a <strong>Crystal</strong> Report to an RDO ResultSet object. For use with Seagate <strong>Crystal</strong><br />
<strong>Reports</strong> 6.0 32-bit and higher.<br />
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/RDOSamp.<br />
zip.asp<br />
5/19/2003 4:24 PM Copyright © 2001 <strong>Crystal</strong> Decisions, Inc. All Rights Reserved. Page 4
<strong>Crystal</strong> <strong>Reports</strong> Automation and VB Sample Applications<br />
vb416ole.zip<br />
This is a Microsoft Visual Basic 4 16-bit application using the <strong>Crystal</strong><br />
Automation Server. The application gives a general overview of how to<br />
integrate the <strong>Crystal</strong> Automation Server into a Microsoft Visual Basic<br />
application. For use with Seagate <strong>Crystal</strong> <strong>Reports</strong> 6.0 16-bit and higher.<br />
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/vb416ole.zi<br />
p.asp<br />
vb432ole.zip<br />
This is a Microsoft Visual Basic 4 32-bit application using the <strong>Crystal</strong><br />
Automation Server. The application gives a general overview of how to<br />
integrate the <strong>Crystal</strong> Automation Server into a Microsoft Visual Basic<br />
application. For use with Seagate <strong>Crystal</strong> <strong>Reports</strong> 6.0 32-bit and higher.<br />
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/vb432ole.zi<br />
p.asp<br />
vb532ole.zip<br />
This is a Microsoft Visual Basic 5 application (supports objects with events)<br />
using the <strong>Crystal</strong> Automation Server. The application gives a general overview<br />
of how to integrate the <strong>Crystal</strong> Automation Server into a Microsoft Visual Basic<br />
application. For use with Seagate <strong>Crystal</strong> <strong>Reports</strong> 6.0 32-bit and higher.<br />
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/vb532ole.zi<br />
p.asp<br />
Connecting and changing location to the<br />
database<br />
AutODBC.zip<br />
A Microsoft Visual Basic 5 application using the <strong>Crystal</strong> Automation Server.<br />
The application demonstrates how to connect a report to a SQL or ODBC<br />
datasource at runtime. For use with Seagate <strong>Crystal</strong> <strong>Reports</strong> 6.0 32 bit and<br />
higher.<br />
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/autodbc.zip<br />
.asp<br />
Report Events<br />
AutEvt.zip<br />
A Microsoft Visual Basic 5 application using the <strong>Crystal</strong> Automation Server.<br />
The application demonstrates how to respond to report-specific events in a<br />
5/19/2003 4:24 PM Copyright © 2001 <strong>Crystal</strong> Decisions, Inc. All Rights Reserved. Page 5
<strong>Crystal</strong> <strong>Reports</strong> Automation and VB Sample Applications<br />
Microsoft Visual Basic application. For use with Seagate <strong>Crystal</strong> <strong>Reports</strong> 6.0 32<br />
bit and higher.<br />
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/autevt.zip.a<br />
sp<br />
vb532ole.zip<br />
This is a Microsoft Visual Basic 5 application (supports objects with events)<br />
using the <strong>Crystal</strong> Automation Server. The application gives a general overview<br />
of how to integrate the <strong>Crystal</strong> Automation Server into a Microsoft Visual Basic<br />
application. For use with Seagate <strong>Crystal</strong> <strong>Reports</strong> 6.0 32-bit and higher.<br />
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/vb532ole.zi<br />
p.asp<br />
Exporting<br />
AutExprt.zip<br />
A Microsoft Visual Basic 5 application using the <strong>Crystal</strong> Automation Server.<br />
The application demonstrates how to export a report and set exporting options at<br />
runtime. For use with Seagate <strong>Crystal</strong> <strong>Reports</strong> 6.0 32 bit and higher.<br />
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/autexprt.zip<br />
.asp<br />
MDI applications<br />
AutMDI.zip<br />
A Microsoft Visual Basic 5 application using the <strong>Crystal</strong> Automation Server.<br />
This application demonstrates how to preview and format reports in an MDI<br />
child window. For use with Seagate <strong>Crystal</strong> <strong>Reports</strong> 6.0 32 bit and higher.<br />
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/AutMDI.zi<br />
p.asp<br />
Setting parameter fields<br />
SQLQuery.exe<br />
Application using the Seagate <strong>Crystal</strong> <strong>Reports</strong> Automation Server which<br />
demonstrates how to pass date ranges to query parameters at runtime. For use<br />
with Seagate <strong>Crystal</strong> <strong>Reports</strong> 6.0 or higher.<br />
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/sqlquery.ex<br />
e.asp<br />
5/19/2003 4:24 PM Copyright © 2001 <strong>Crystal</strong> Decisions, Inc. All Rights Reserved. Page 6
<strong>Crystal</strong> <strong>Reports</strong> Automation and VB Sample Applications<br />
Using subreports<br />
AutSub.zip<br />
A Microsoft Visual Basic 5 application using the <strong>Crystal</strong> Automation Server.<br />
The application demonstrates how to access and format a subreport using the<br />
Seagate <strong>Crystal</strong> <strong>Reports</strong> Automation Server. For use with Seagate <strong>Crystal</strong><br />
<strong>Reports</strong> 6.0 32 bit and higher.<br />
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/autsub.zip.a<br />
sp<br />
Autsubrp.zip<br />
A Microsoft Visual Basic 5 application using the <strong>Crystal</strong> Automation Server.<br />
The application demonstrates how to access and format a subreport using the<br />
Seagate <strong>Crystal</strong> <strong>Reports</strong> Automation Server. For use with Seagate <strong>Crystal</strong><br />
<strong>Reports</strong> 6.0 32 bit and higher.<br />
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/autsubrp.zi<br />
p.asp<br />
CDOSub.zip<br />
A Microsoft Visual Basic 5 application using the <strong>Crystal</strong> Automation Server<br />
with the <strong>Crystal</strong> Data Object (CDO). This application creates 2 <strong>Crystal</strong> Data<br />
Object recordsets and includes a report with a subreport. One recordset is passed<br />
to the main report and the second is passed to the subreport. For use with<br />
Seagate <strong>Crystal</strong> <strong>Reports</strong> 6.0 32 bit and higher.<br />
http://support.crystaldecisions.com/communityCS/FilesAndUpdates/cdosub.zip.<br />
asp<br />
Contacting <strong>Crystal</strong> Decisions for Technical Support<br />
We recommend that you refer to the product documentation and that you visit<br />
our Technical Support web site for more resources.<br />
Self-serve Support:<br />
http://support.crystaldecisions.com/<br />
Email Support:<br />
http://support.crystaldecisions.com/support/answers.asp<br />
Telephone Support:<br />
http://www.crystaldecisions.com/contact/support.asp<br />
5/19/2003 4:24 PM Copyright © 2001 <strong>Crystal</strong> Decisions, Inc. All Rights Reserved. Page 7