|
-
Jan 26th, 2007, 04:14 AM
#1
Thread Starter
Fanatic Member
How add Crystal Report Version 11 in VB6?
Dear All,
How add Crystal Report Version 11 in VB6?
Thanks & Regards
Winanjaya
-
Jan 26th, 2007, 07:51 AM
#2
Re: How add Crystal Report Version 11 in VB6?
-
Jan 26th, 2007, 08:06 AM
#3
Frenzied Member
Re: How add Crystal Report Version 11 in VB6?
First will need to add the following reference to your program:
Crystal ActiveX Report Viewer Library 11.0
Once you have done that you will have to add the CrystalActiveX Report Veiwer control to your project some where. Then you can use the following code to veiw the report in that control:
VB Code:
Private Sub RunReport()
Dim crxApp As New CRAXDDRT.Application
Dim crxReport As CRAXDDRT.Report
Dim crxDatabaseTables As CRAXDDRT.DatabaseTables
Dim crxDatabaseTable As CRAXDDRT.DatabaseTable
Dim crxDatabase As CRAXDDRT.Database
Dim crxParm As CRAXDDRT.ParameterValues
Dim crxSubReport As CRAXDDRT.Report
Dim ReportName As String
ReportName = "\\SERVER\Other\Reports\PL.rpt" 'Report Path
Set crxReport = crxApp.OpenReport(ReportName)
'crxReport.PrintOut False, 1 'uncomment to printout the report
With crView 'Control Name
.ReportSource = crxReport
.ViewReport
While .IsBusy
DoEvents
Wend
.Zoom "75"
.Visible = True
End With
End Sub
-
Jan 31st, 2007, 04:42 AM
#4
Junior Member
Re: How add Crystal Report Version 11 in VB6?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|