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 1032465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:04:51+00:00 2026-05-16T14:04:51+00:00

I have created a crystal report using MySql 5.1, using XML (Dataset save as

  • 0

I have created a crystal report using MySql 5.1, using XML (Dataset save as xml in application root folder) now when i run on my machine it works fine. But when app is installed on other machine it give database login required. how can i remove that login window ? The code is given below

    cDataSet.DataSetName = "TimeDataSet";  
    cDataSet.WriteXml(Application.StartupPath
    + "\\" + "TimeDSReport.xml", XmlWriteMode.WriteSchema); 
    ReportDocument report = new ReportDocument();   
    report.Load(Application.StartupPath + "\\" + "TimeTracker.rpt");         
    crystalReportViewer1.ReportSource = report;

Please see if the code is fine or i need to add some additional parameter?

Thanks
PAL

  • 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-16T14:04:51+00:00Added an answer on May 16, 2026 at 2:04 pm

    Make sure that the Name or the DataTable in “Typed DataSet” and the Name DataTable that you assign as “RecordSource” to crystal reprort must be same

    Or if u are using directly from database Set the logon information in your code as below

    private void ConfigureCrystalReports()
    {
        rpt= new ReportDocument();
        string reportPath = Server.MapPath("reportname.rpt");
        rpt.Load(reportPath);
        ConnectionInfo connectionInfo = new ConnectionInfo();
        connectionInfo.DatabaseName = "Northwind";
        connectionInfo.UserID = "sa";
        connectionInfo.Password="pwd";
        SetDBLogonForReport(connectionInfo,rpt);
        CrystalReportViewer1.ReportSource = rpt;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a C# 2010 application that contains a report created using Crystal Reports
I am using Crystal Reports in my application. Now, I have created an SQL
I have created a sample report with crystal report 10. Now, I wanna to
I have created a crystal report in VS 2005 using the wizard. In the
I created a crystal report using test a DB. I run the report using
I have to make a new report using crystal report8.5 . I have created
I have created one Windows Forms application with C# and MySQL (using MySQL Connector
I have created a WinForms application using C# 2010. It contains a report created
I am using Crystal Reports inside Visual Studio 2005. I have created a report
I have created reports using Crystal Reports in my asp.net application(vb). It was fine.

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.