cancel
Showing results for 
Search instead for 
Did you mean: 

Reports

Former Member
0 Kudos

Hi,

I am developping an addon (VB.Net) but with reports in "Crystal Reports". This is the first time I am using Crystal. My questions:

1. How can I give parameters from the.Net project to Crystal Reports

2. How can (best method) start a Crystal Report from my project.

Thx

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

very rough description for your beginning with Crystal Reports follows:

First add references:

CrystalDecisions.CrystalReports.Engine

CrystalDecisions.Shared

CrystalDecisions.Windows.Forms

Next:

create .NET form frmCrView and add control CrystalDecisions.Windows.Forms.CrystalReportViewer

And you can use it from your code:

frmCrystalRep = New frmCrView

---load existing report

frmCrystalRep.CrystalReportViewer1.ReportSource.Load()

-- set report filter

frmCrystalRep.CrystalReportViewer1.SelectionFormula()

-- view a report

frmCrystalRep.ShowDialog()

There are few next "standard" problems with connection to db and refreshing of data...See special web discussions, please.

Good luck

Tomas

Answers (0)