469,903 Members | 1,438 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,903 developers. It's quick & easy.

Problem in crystalreport viewer

Hi!!!!!!!!!!
I am developing .net project without using visual studio.net
environment.
I have created a report in crystal reports 9.0.
I have written my code in c# to export and open the report. My
export is done perfectly where as my crystal report viewer part, gives
me the following error

CrystalReportViewer - crystalReportViewer1
Use the ReportSource or DataBindings property to specify a report
source.

Can anyone please help me in this, I will be really helpful for me

Thanks in advance

Regards
Dharani
Nov 18 '05 #1
3 1033
Based on the error(you have not provided any code), you
are not telling the Crystal Report viewer which report to
show.

You need to do something like:
CrystalReportViewer1.ReportSource = rpt;
where rpt is your typed report object (an instance of the
class associated with the report you create.)
-----Original Message-----
Hi!!!!!!!!!!
I am developing .net project without using visual studio.netenvironment.
I have created a report in crystal reports 9.0.
I have written my code in c# to export and open the report. Myexport is done perfectly where as my crystal report viewer part, givesme the following error

CrystalReportViewer - crystalReportViewer1
Use the ReportSource or DataBindings property to specify a reportsource.

Can anyone please help me in this, I will be really helpful for me
Thanks in advance

Regards
Dharani
.

Nov 18 '05 #2

Hi,
Thanks for your reply.

yes i have used the same code as u told. here is my code

crystalReportViewer1.Visible = true;
crystalReportViewer1.ReportSource = crReportDocument;

I am want to remind that i am not using .net IDE. just doing everything
manually. please help further

thanks
dharani

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3
Hi,

You need to create a report document and populate it with which rpt and
connection info:

crReportDoc = new ReportDocument();

crReportDoc.Load(path + "\\" + rptName);

cfCrystalReportsUtility.ReportDocumentSetLocation( crReportDoc,
ConnString);// Connection info

:

Do your other stuffs like param, record selection formula

:

CRViewer.ReportSource = crReportDoc;

elvin

"Dharani Ravindran" <dp******@saipeople.com> wrote in message
news:Oe**************@TK2MSFTNGP09.phx.gbl...

Hi,
Thanks for your reply.

yes i have used the same code as u told. here is my code

crystalReportViewer1.Visible = true;
crystalReportViewer1.ReportSource = crReportDocument;

I am want to remind that i am not using .net IDE. just doing everything
manually. please help further

thanks
dharani

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by s-galit | last post: by
2 posts views Thread by Vlatko | last post: by
3 posts views Thread by redneon | last post: by
1 post views Thread by Jason Huang | last post: by
2 posts views Thread by Don Wash | last post: by
reply views Thread by David Dvali | last post: by
1 post views Thread by xUser | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.