hi. I'm New to Crystal Reports. I'm bit stucked with some problem at the moment. I'm developing a small POS system, for that I'm trying/ testing small stuffs before starting for the thing.
I found a site
Crystal Report Step by Step
this was a very helpful web site for me.
almost every reports works as mentioned in the site.
I started creating a crystal report using a XML file.
it worked perfectly in my developing pc. But when I tried to run the same C# windows application on a different PC it keeps giving me a dialog box asking user name and password for the datatable.
I'm sure I never gave any authentication details to the Application. but everytime i tried to run the application on a differnt pc it prompts the message asking for username and password.
Please Help Me....!
XML file
<product>
<product_id>1
<product_name>Product 1
<product_price>1000
<product>
<product_id>2
<product_name>Product 2
<product_price>2000
<product>
<product_id>3
<product_name>Product 3
<product_price>3000
<product>
<product_id>4
<product_name>Product 4
<product_price>4000
--------------------------------------------------------
Added the XML file as a DataSource File from the Crystal Report Wizard.
---------------------------------------------------------
Form Load Code...!!!
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;
namespace testXML
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
ReportDocument cryRpt = new ReportDocument();
cryRpt.Load("G:\\Mywork\\testXML\\testXML\\CrystalReport1.rpt");
crystalReportViewer1.ReportSource = cryRpt;
crystalReportViewer1.Refresh();
}
}
}