Link to home
Start Free TrialLog in
Avatar of directred
directred

asked on

Crystal Report not being displayed on user's PC

Problem

I am developing a system that uses Crystal Reports. I have Crystal report v8.5 on my PC and when I display a crystal report via VB.Net (2003), the report is displayed. The problem is that when I do the same report on a user's PC the report is not getting displayed. There are no error messages. What am I doing wrong.

Here is a sample of my code that is on the click event of the form....

             'Load Crystal Report's rpt file
                    Dim cr As New CrystalDecisions.CrystalReports.Engine.ReportDocument

                    cr.Load(strReportPath)

                    param1Field.ParameterFieldName = "PassParam"
                    param1Range.Value = sPassParam
                    param1Field.CurrentValues.Add(param1Range)
                    param1Fields.Add(param1Field)
                    CrystalReportViewer1.ParameterFieldInfo = param1Fields

                    Dim rpt As New CrystalDecisions.CrystalReports.Engine.ReportDocument
                    CrystalReportViewer1.ReportSource = strReportPath
                    CrystalReportViewer1.Refresh()

                    'Set the CrystalReportViewer's apperance and set the ReportSource
                    CrystalReportViewer1.ShowRefreshButton = False
                    CrystalReportViewer1.ShowCloseButton = False
                    CrystalReportViewer1.ShowGroupTreeButton = False
                    CrystalReportViewer1.Zoom(55)

                    'CrystalReportViewer1.ReportSource = cr

Any ideas?
ASKER CERTIFIED SOLUTION
Avatar of Gerald_Wright
Gerald_Wright

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial