Beispiel #1
0
 private void Detail_Format(object sender, EventArgs e)
 {
     Data.OleDBDataSource subDS = new Data.OleDBDataSource();
     subDS.ConnectionString = ((Data.OleDBDataSource)DataSource).ConnectionString;
     subDS.SQL           = "Select * from products where categoryID = " + _categoryID;
     _rpt.DataSource     = subDS;
     ctlSubreport.Report = _rpt;
     Detail.AddBookmark(txtCategoryName.Text);
 }
Beispiel #2
0
 private void Detail_Format(object sender, EventArgs e)
 {
     Detail.AddBookmark(((TextBox)(ParentReport.Sections["Detail"].Controls["txtCategoryName"])).
                        Text + "\\" + txtProductName.Text);
 }
 /// <summary>
 /// BeforePrint Event
 /// ActiveReports raises this event before the section is rendered to a page.
 /// Use this event to modify the control's values before printing.
 /// The changes made here do not effect the height of the section.
 /// </summary>
 private void Detail_BeforePrint(object sender, EventArgs eArgs)
 {
     // Use the name unbound field that we created in DataInitialize
     // as the caption of the bookmark.
     Detail.AddBookmark(txtName.Text);
 }