472,371 Members | 1,351 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,371 software developers and data experts.

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 1079
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: s-galit | last post by:
hi, i have a formula parameter in my crystalReport how can i initalize the parameter so that in every line in the crystalReport the parameter will have a different string? how to get to line in...
2
by: Vlatko | last post by:
I have made a simple application in C# that prints a txt file using CrystalReport. On my PC everything works fine but when I run my app on another PC it collapses. I get message: "Cannot find...
3
by: redneon | last post by:
I've populated a DataSet in my C# program and verified that it contains the data I passed it. I've then created a blank CrystalReport and set it's DataSource to my DataSet. Then I created a...
1
by: Jason Huang | last post by:
Hi, Would someone tell me how to open a CrystalReport in my ASP.Net C#? We can use the Show method to open a windows form, but what method should we use for opening a CrystalReport? Thanks for...
2
by: Don Wash | last post by:
Hi All! I've been searching everywhere for a simple sample of producing a bar graph using CrystalReport by specifying SQL Query, and I've found none of it! I find so many complex samples with so...
0
by: David Dvali | last post by:
Hello. Is any method to control quantity of the records per page in a CrystalReport's report from ASP.NET? I just need to add one parameter to my web page for controlling quantity of the...
0
by: Ray | last post by:
Hi all, I would like to ask how to know whether a user has printed a report while using crystalreport viewer. Thanks a lot, Ray
1
by: mhsasono | last post by:
Hi all, Has anybody experienced with CrystalReport? My question is: Does CrystalReport have capability to print the Microsoft Word document? Reason: I want to know CrystalReport capability...
1
by: xUser | last post by:
Hi, We are developing a new application with .NET 2.0, Oracle and Crystal Reports. Our reports are deployed at Crystal Management Server and are accessed from .NET application using the...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
2
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.
0
DizelArs
by: DizelArs | last post by:
Hi all) Faced with a problem, element.click() event doesn't work in Safari browser. Tried various tricks like emulating touch event through a function: let clickEvent = new Event('click', {...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.