Advertisement

01.25.2008 at 01:14AM PST, ID: 23110484
[x]
Attachment Details

show crystal report in crystal report viewer on c# 2005 winform

Asked by ljhodgett in Visual Studio .NET 2005, C# Programming Language

Tags: crystal, report, viewer, 2005

Hi,

I have created a crystal report that is linked to a dataset. I am trying to find out how I would show this in a c# crystal report viewer contained in a winform. The code I usually use in vb.net is: -

Dim rpt As New crUsage_By_Date




        rpt.Load(Forms.Application.StartupPath & "\crUsage_By_Date.rpt")
        rpt.SetDataSource(DsReports1.Tables("Usage_By_Date"))

        rpt.SetParameterValue("Report_Period", DateTimePicker1.Text & " to " & DateTimePicker2.Text)
        rpt.SetParameterValue("Printed_By", MDIParent1.lblUser.Text)
        'frmPreviewReport.CrystalReportViewer1.ReportSource = rpt
        'frmPreviewReport.Show()

I am trying to find out the c# equivalent.

Many thanks
LeeStart Free Trial
[+][-]01.25.2008 at 01:33AM PST, ID: 20741214

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.25.2008 at 07:51AM PST, ID: 20743447

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Studio .NET 2005, C# Programming Language
Tags: crystal, report, viewer, 2005
Sign Up Now!
Solution Provided By: mlmcc
Participating Experts: 2
Solution Grade: A
 
 
[+][-]01.27.2008 at 08:40AM PST, ID: 20754234

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.27.2008 at 05:52PM PST, ID: 20756279

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.28.2008 at 05:19AM PST, ID: 20758596

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.06.2008 at 12:26AM PST, ID: 20830363

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628