ZuperDuper
Programmer
I have a bit of a problem: I was given a VB6 application that has been using .rpt files v4.5 or 4.6; The program connects those files to the Access data tables. The problem is that some of the files do not work. The procedure fails on the .action property of the report: CrystalReport1.Action=1 <=does not work
I suspect that I have reports that are different versions.
To fix this I am thinking to changing all of the reports to the newer 9.0 version. We do not have older version 4.5 software anymore.
The trouble is, as I understand, that versions 8.5 and up have changed completely the way VB6 and Crystal Reports interact. I have researched tutorials from the CrystalDecisions, but I am not understanding exactly what the difference is, and what should I do to make things work.
I am new to Crystal reports, and not an expert with VB6.
How can I connect mdb to a report and display the report to the user?
This is the older version of the code:
==========================================================
With Form1.CrystalReport1
.DataFiles(0) = "c:\program files\dc analysis reports\results.mdb"
.ReportFileName = "c:\program files\dc analysis reports\proglist.rpt"
.DiscardSavedData = True
If intDestination = 0 Then
.WindowTitle = "Programmer Checklist"
.WindowState = crptMaximized
.WindowHeight = 850
.WindowWidth = 1000
.WindowTop = 0
.WindowLeft = 0
.Destination = crptToWindow
.Action = 1
ElseIf intDestination = 1 Then
.Destination = crptToPrinter
.PrintReport
End If
End With
==========================================================
Can anyone please help me or refer to a link?
I suspect that I have reports that are different versions.
To fix this I am thinking to changing all of the reports to the newer 9.0 version. We do not have older version 4.5 software anymore.
The trouble is, as I understand, that versions 8.5 and up have changed completely the way VB6 and Crystal Reports interact. I have researched tutorials from the CrystalDecisions, but I am not understanding exactly what the difference is, and what should I do to make things work.
I am new to Crystal reports, and not an expert with VB6.
How can I connect mdb to a report and display the report to the user?
This is the older version of the code:
==========================================================
With Form1.CrystalReport1
.DataFiles(0) = "c:\program files\dc analysis reports\results.mdb"
.ReportFileName = "c:\program files\dc analysis reports\proglist.rpt"
.DiscardSavedData = True
If intDestination = 0 Then
.WindowTitle = "Programmer Checklist"
.WindowState = crptMaximized
.WindowHeight = 850
.WindowWidth = 1000
.WindowTop = 0
.WindowLeft = 0
.Destination = crptToWindow
.Action = 1
ElseIf intDestination = 1 Then
.Destination = crptToPrinter
.PrintReport
End If
End With
==========================================================
Can anyone please help me or refer to a link?