473,408 Members | 2,113 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

How can I code preview a report designed using c# crystal report?

How can I code preview a report designed using c# crystal report?

The Application builds successfully, and all other functions works alright but when I select from menu to preview a report, nothing happens - the report is never displayed. How can I make it displayed?
thanks
Wag
Apr 20 '11 #1
1 3712
adriancs
122 100+
Try this. "CrystalReport1" shown below is the crystal report that you created.
Expand|Select|Wrap|Line Numbers
  1. CrystalReport1 crp1 = new CrystalReport1();
  2.  
  3. CrystalDecisions.Windows.Forms.CrystalReportViewer crystalReportViewer1 = new CrystalDecisions.Windows.Forms.CrystalReportViewer();
  4. crystalReportViewer1.Dock = System.Windows.Forms.DockStyle.Fill;
  5. crystalReportViewer1.ToolPanelView = CrystalDecisions.Windows.Forms.ToolPanelViewType.None;
  6. crystalReportViewer1.ReportSource = crp1;
  7.  
  8. Form formreport = new Form();
  9. formreport.Size = new Size(800, 600);
  10. formreport.Controls.Add(crystalReportViewer1);
  11. formreport.ShowDialog();
Apr 30 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Mike | last post by:
Hello All, I'm trying to deploy my windows-based application using crystal report. i package the setup by including the crystal report file, the exe file, and two merge modules for the crystal...
3
by: Andrew | last post by:
hello Is it possible to create a PDF document from an HTML file using Crystal decisions. I have a .html file which I want to turn into a PDF programmatically.I have crystal reports as part of...
0
by: Jaiganesh | last post by:
Are there any possible ways to read the HTML content rendered/generated from the Crystal Report Viewer XI using ASP.net from the code behind file? If so, please let me know the correct event/method...
0
by: Rabbit | last post by:
recently I monitor my web application using Crystal report for .net, I notice everytime I call CrystalReportView control to display the report, the memory usage go up by 2MB, upto certain level,...
2
by: Jason Huang | last post by:
Hi, The Crystal Report bundled with .Net 2003 is version 9. How do I update the Crystal Report V9 in my .Net 2003 to Version 11 so that whenever I open a .rpt file in my VS 2003, the Crystal...
0
by: netlady | last post by:
Hi, can someone help me or share his or her idea why I am always getting a blank web page whenever I click the export button or the navigational next toolbar of the crystalreportviewer in .net ? I...
2
pureenhanoi
by: pureenhanoi | last post by:
i'm using VB6 to create application. My application connect to database (MS-SQL Server) through ODBC. i'm using Crystal Report too. But there is a problem here: if my SQL Server does not need...
1
by: gzali | last post by:
hi, i want to send parameter on web by using crystal report,the problem is that i am using crystal report 8.5 i am using a heperlink on a report filed, when the user click on the heperlink the...
2
H4nZ83
by: H4nZ83 | last post by:
i created a report using crystal report 8.5 in vb 6, how can i change the paper size of the report in the editing mode?
1
by: ashuknp | last post by:
Hi , Plz tell me any one i have developed the Winfrm (window based application using C# )project in .net 2.0 and using the crystal report . then if i install in client side. may i require...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.