The Application Object is the only creatable object in the Crystal Report Engine Object Model. All access to the Crystal Report Engine Automation Server must begin with the creation of an instance of the Application object.
An instance of the Application object can be created using the Visual Basic New keyword or using the CreateObject function and the Prog Id Crystal.CRPE.Application. However, the Visual Basic New keyword is much easier and more efficient to use. With New, you do not need to reference Crystal.CRPE.Application, which means that you can eliminate some unnecessary coding details.
Dim app as Application
Set app = New Application ' Automatically creates a new instance of the object when it is first
' referenced in the code, so it doesn't have to be set.
Dim app As New Application
Dim app As Object
Set app = CreateObject("Crystal.CRPE.Application")
| Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |