Hii all I am creating a crystal report in my project. This is my first time
I am using crystal report in my program. I have created a crystal report and
also used crystal reportviwer in my form. I am importing data from a table
in crystal report which is succesfully taking place.
This all I am doing simply on a button click event
private void button1_Click(object sender, EventArgs e)
  {
  try
  {
  ReportDocument rd = new ReportDocument();
  rd.Load("C:\\Documents and Settings\\Administrator\\My Documents\\Visual
Studio 2005\\Projects\\a7\\a7\\crystalReport1.rpt");
  crystalReportViewer1.ReportSource = rd;
  crystalReportViewer1.Refresh();
  }
  catch (Exception ex)
  {
  string sa = ex.Message.ToString();
}
}
  [image: Error.JPG]


Now I am having problem that is:
1. I am getting  Visual Studio debugger window getting popped up, Which is
not wanted.
2. This is asking me for password.
3. After giving it password It is showing me the table which is desired. But
I want to add One more text. That is of S.No.
This S.No. will be fetched from another table.That table will be having only
record for S.No. I want that to be incremented by 1 each time I took out the
printout. Please reple me. I am in big trouble. I have gone through several
tutorials. Didn't found any help in my issues.

-- 
With Regards
Vikas Garg
919458309530

Reply via email to