Exemplo n.º 1
0
 private void tabControl1_TabIndexChanged(object sender, EventArgs e)
 {
     if (tabControl1.SelectedTab == tabPage2)
     {
         ReportDLL.ReportGenerator rg = new ReportDLL.ReportGenerator(GetXML(), txtCode.Text, txtTmp.Text, txtReport.Text);
         tvcReportViewer1.ReportSource = rg.ExportExcel(txtReport.Text);
         lbErr.Text = rg._sErr;
     }
 }
Exemplo n.º 2
0
 private void Form2_Load(object sender, EventArgs e)
 {
     ReportDLL.ReportGenerator rg = new ReportDLL.ReportGenerator(xmlStr, "Test", Properties.Settings.Default.TemplatePath, Properties.Settings.Default.ReportPath);
     tvcReportViewer1.ReportSource = rg.ExportExcel(Properties.Settings.Default.ReportPath);
 }
Exemplo n.º 3
0
 private void button2_Click(object sender, EventArgs e)
 {
     ReportDLL.ReportGenerator rg = new ReportDLL.ReportGenerator(richTextBox1.Text, "Test", Properties.Settings.Default.TemplatePath, Properties.Settings.Default.ReportPath);
     rg.DesignReport();
 }
Exemplo n.º 4
0
 private void btnDesign_Click(object sender, EventArgs e)
 {
     ReportDLL.ReportGenerator rg = new ReportDLL.ReportGenerator(GetXML(), txtCode.Text, txtTmp.Text, txtReport.Text);
     rg.DesignReport();
     lbErr.Text = rg._sErr;
 }