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.CrystalRe ports.Engi ne.ReportD ocument
cr.Load(strReportPath)
param1Field.ParameterField Name = "PassParam"
param1Range.Value = sPassParam
param1Field.CurrentValues. Add(param1 Range)
param1Fields.Add(param1Fie ld)
CrystalReportViewer1.Param eterFieldI nfo = param1Fields
Dim rpt As New CrystalDecisions.CrystalRe ports.Engi ne.ReportD ocument
CrystalReportViewer1.Repor tSource = strReportPath
CrystalReportViewer1.Refre sh()
'Set the CrystalReportViewer's apperance and set the ReportSource
CrystalReportViewer1.ShowR efreshButt on = False
CrystalReportViewer1.ShowC loseButton = False
CrystalReportViewer1.ShowG roupTreeBu tton = False
CrystalReportViewer1.Zoom( 55)
'CrystalReportViewer1.Repo rtSource = cr
Any ideas?
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.CrystalRe
cr.Load(strReportPath)
param1Field.ParameterField
param1Range.Value = sPassParam
param1Field.CurrentValues.
param1Fields.Add(param1Fie
CrystalReportViewer1.Param
Dim rpt As New CrystalDecisions.CrystalRe
CrystalReportViewer1.Repor
CrystalReportViewer1.Refre
'Set the CrystalReportViewer's apperance and set the ReportSource
CrystalReportViewer1.ShowR
CrystalReportViewer1.ShowC
CrystalReportViewer1.ShowG
CrystalReportViewer1.Zoom(
'CrystalReportViewer1.Repo
Any ideas?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.