473,581 Members | 2,903 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

CrystalReportVi ewer - crystalReportVi ewer1
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 1153
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:
CrystalReportVi ewer1.ReportSou rce = 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

CrystalReportV iewer - crystalReportVi ewer1
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

crystalReportVi ewer1.Visible = true;
crystalReportVi ewer1.ReportSou rce = crReportDocumen t;

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.Loa d(path + "\\" + rptName);

cfCrystalReport sUtility.Report DocumentSetLoca tion(crReportDo c,
ConnString);// Connection info

:

Do your other stuffs like param, record selection formula

:

CRViewer.Report Source = crReportDoc;

elvin

"Dharani Ravindran" <dp******@saipe ople.com> wrote in message
news:Oe******** ******@TK2MSFTN GP09.phx.gbl...

Hi,
Thanks for your reply.

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

crystalReportVi ewer1.Visible = true;
crystalReportVi ewer1.ReportSou rce = crReportDocumen t;

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
1601
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 crystalReport? thanks thats what i have wrote till now but im getting in my field only "-" (in every line) For i = 0 To 9
2
1950
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 KeycodeV2.dll, or invalid keycode." What is keycode? I created setup program to install my app on another computer using VS .NET. I even have copied...
3
15521
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 CrystalReportViewer and set it's ReportSource to my CrystalReport. When I run the program though nothing get's shown in my viewer. The following is how I...
1
3022
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 help. Jason
2
8471
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 many features buried in the sample but all I want to know is a very simple thing, how to create bar charts with CrystalReport in VS.NET using SQL...
0
935
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 records per page in the report viewer. Thank you.
0
830
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
1808
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 since now I am in the middle of developing a system that generate a report or document from various resources, e.g. some parts are Oracle fields and...
1
1220
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 CrystalReport Viewer control. We have few cross table reports as part of our application. The problem is that the cross tab reports are printed perfectly in...
0
8158
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7917
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6567
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5685
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5366
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3809
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3835
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2311
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1147
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.