Ejemplo n.º 1
0
 private void buttonDesign_Click(object sender, RoutedEventArgs e)
 {
     if (treeViewReports.SelectedItem != null)
     {
         using (Stimulsoft.Report.StiReport report = new Stimulsoft.Report.StiReport())
         {
             report.Load(ReportsPath + treeViewReports.SelectedItem.ToString() + ".mrt");
             report.Dictionary.Databases.Clear();
             report.RegData("Demo", "Demo", dataSetInvoice);
             report.Compile();
             report.DesignWithWpf();
         }
     }
     else
     {
         Stimulsoft.Report.Wpf.StiMessageBox.Show("Select invoice first to proceed!");
     }
 }