Crystal Reports

L

lucoto

Hi,
I wonder if there's a way to create a Crystal report without using
database support. I'd like to use Crystal Reports to create some charts
of my application data, but I don't see an option to import these data
directly from application; it seems to me that I have to use the
database. Is there a way to omit it?

Thanks in advance,

greetings, Lukasz
 
D

dllhell

Hi,
I wonder if there's a way to create a Crystal report without using
database support. I'd like to use Crystal Reports to create some charts
of my application data, but I don't see an option to import these data
directly from application; it seems to me that I have to use the
database. Is there a way to omit it?

create params in CrystalDesigner and parse your values into report using
params
 
L

lucoto

dllhell said:
create params in CrystalDesigner and parse your values into report using
params
Thanks for the answer, it doesn't work automatically though - one must
fill the needed value in a popup field; I'd like my application to send
data to Crystal Report without communication with user.
Hope it's possible,
Any ideas? Am I doing something wrong?

Lukasz
 
D

dllhell

Thanks for the answer, it doesn't work automatically though - one must
fill the needed value in a popup field; I'd like my application to send
data to Crystal Report without communication with user.
Hope it's possible,
Any ideas? Am I doing something wrong?

Lukasz

try something like this:
using CrystalDecisions.CrystalReports.Engine;

CrystalDecisions.CrystalReports.Engine.ReportDocument crep = new
ReportDocument();

crep.SetParameterValue("param1", VAL);

there is no need for any popups
ofcourse, "param1" have to exist in report...
 
L

lucoto

dllhell napisal(a):
try something like this:
using CrystalDecisions.CrystalReports.Engine;

CrystalDecisions.CrystalReports.Engine.ReportDocument crep = new
ReportDocument();

crep.SetParameterValue("param1", VAL);

Ok, I used DataSet and did it like this:

CrystalReports CrWindow = new CrystalReports();
CrystalDecisions.CrystalReports.Engine.ReportDocument rep = new
ReportDocument();
rep.Load(Environment.CurrentDirectory + @"\..\..\CrystalReport1.rpt");
rep.SetDataSource(dataSet);
CrWindow.crystalReportViewer1.ReportSource = rep;
CrWindow.Show();

It seems to work now. Once more, thanks for your answers!
Lukasz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top