Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Displaying a Crystal Report in VB6 Post Reply Post New Topic
Author Message
steph03
Newbie
Newbie
Avatar

Joined: 13 Jan 2009
Location: Canada
Online Status: Offline
Posts: 1
Quote steph03 Replybullet Topic: Displaying a Crystal Report in VB6
    Posted: 13 Jan 2009 at 2:31pm
 
Hello all,
 
I am new to Crystal Reports and am having difficulty display a Crystal Report inside a VB6 window.
In the project, I have added the component : Crystal ActiveX Report Viewer Library 10.0. I am using VB6 and Crystal Reports 10
I am simply trying to open a Report in a window. Here is the code Im using:
    Dim Appl As New CRAXDRT.Application
    Dim Report As New CRAXDRT.Report
    Set Report = Appl.OpenReport(strPath & "\MACOEACKFRM.rpt")
    CrystalReport1.ReportSource = Report
    CrystalReport1.ViewReport
CrystalReport1 is the object in VB.  When I run it, i get an error at 'CrystalReport1.ReportSource = Report'. The error is 'Object does not support this property or method'
And secondly, VB doesnt seem to know the method 'ViewReport'. When the drop-down list appears for the possible methods for CrystalReport1, ViewReport isnt part of the list.
 
Can anyone help me here?  Thank you so much in advance,
 
Steph
 
 
Stephane Halle
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.