Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1103527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:21:20+00:00 2026-05-17T01:21:20+00:00

I am using Visual Studio 2010 Ultimate Edition and I’ve installed the Beta 2

  • 0

I am using Visual Studio 2010 Ultimate Edition and I’ve installed the Beta 2 release of SAP Crystal Reports, version for Visual Studio 2010. Everything works fine but when I try to set the ReportSource property for the crystalReportViewer I can’t find it. Is there any other way to bind a crystal report to CrystalReportViewer? This is my source:

        var cryRpt = new ReportDocument();
        cryRpt.Load("~/CrystalReports/DateToDateReport.rpt");

        new TableLogOnInfos();
        TableLogOnInfo crtableLogoninfo;
        var crConnectionInfo = new ConnectionInfo();

        var crParameterDiscreteValue = new ParameterDiscreteValue {Value = dtpFromDate.Value};

        ParameterFieldDefinitions crParameterFieldDefinitions = cryRpt.DataDefinition.ParameterFields;
        ParameterFieldDefinition crParameterFieldDefinition = crParameterFieldDefinitions["fromDate"];
        ParameterValues crParameterValues = crParameterFieldDefinition.CurrentValues;

        crParameterValues.Clear();
        crParameterValues.Add(crParameterDiscreteValue);
        crParameterFieldDefinition.ApplyCurrentValues(crParameterValues);

        crParameterDiscreteValue.Value = dtpToDate.Value;
        crParameterFieldDefinitions = cryRpt.DataDefinition.ParameterFields;
        crParameterFieldDefinition = crParameterFieldDefinitions["toDate"];
        crParameterValues = crParameterFieldDefinition.CurrentValues;

        crParameterValues.Add(crParameterDiscreteValue);
        crParameterFieldDefinition.ApplyCurrentValues(crParameterValues);

        crConnectionInfo.ServerName = "ServerName";
        crConnectionInfo.DatabaseName = "Database";
        crConnectionInfo.UserID = "Username";
        crConnectionInfo.Password = "Password";

        var crTables = cryRpt.Database.Tables;
        foreach (Table crTable in crTables)
        {
            crtableLogoninfo = crTable.LogOnInfo;
            crtableLogoninfo.ConnectionInfo = crConnectionInfo;
            crTable.ApplyLogOnInfo(crtableLogoninfo);
        }

        crystalReportViewer1.ReportSource = cryRpt;
        crystalReportViewer1.Refresh(); 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T01:21:20+00:00Added an answer on May 17, 2026 at 1:21 am

    You must set .NET FRAMEWORK 4.0 –> 3.5

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently installed Visual Studio 2010 (Ultimate edition, final version released in April), and
I am using Visual Studio 2010 Ultimate Beta 2. What is the relevant namespace/classes
I am using SQL Server Express edition for my application (Visual Studio 2010 Ultimate,
I am using Visual Studio 2010 ultimate edition and i install it with full
I just switched to the Visual Studio 2010 Ultimate Release Candidate, from Beta 2,
I already have Visual Studio 2010 SP1 installed. I am using express edition. Also,
I am using Visual Studio 2010 SP1 Ultimate on a c# class library project
I'm running Windows 7 Ultimate (64 bit) using Visual Studio 2010 RC. I recently
Im using Visual Studio 2010 Ultimate and Im trying to convert some images using
I am using Visual Studio 2010 Ultimate SP1 and have set my project's target

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.