what is problem?

hi. help me please.
i have this codes but
return
DataTableException was unhandled error to me,
DataRow row = dataSet1.Tables["Table1"].NewRow();
            row[0] = "satir1";
            row[1] = "satir2";
    
            dataSet1.Tables[0].Rows.Add(row);
           
            report1 = new Report();

            dataGridView1.DataSource = dataSet1.Tables[0];
            report1.Load(@"c:\denemerapor.frx");
            report1.RegisterData(dataSet1.Tables["Table1"], "Table1");
     
           
           // report1.GetDataSource("Table1").Enabled = true;
         report1.GetDataSource("Table1");
            report1.Show();

Comments

  • edited 4:10PM
    Hello,

    Probably your report has different datasource name. Open the .frx file in the text editor and look at the Report/Dictionary/TableDataSource item, its "ReferenceName" property. You should use the same name when you register a data with the report.RegisterData call.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.