Ejemplo n.º 1
0
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Dictionary <string, object> pars = new Dictionary <string, object>();

            pars.Add("UserID", "XXXXX");
            pars.Add("UserName", "XXXXX");
            DataSet ds = getReportData();

            System.Guid gid = new Guid("60215f32-1467-46a5-a5a7-d38e6ecc9cb2");
            MB.WinPrintReport.DefaultReportData reportData = new MB.WinPrintReport.DefaultReportData("StockOut", ds, pars);
            MB.WinPrintReport.PrintContextMenu.ShowMenu(linkLabel1, reportData);
        }
Ejemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Dictionary <string, object> pars = new Dictionary <string, object>();

            pars.Add("UserID", "HQ01U4282");
            pars.Add("UserName", "陈迪臣");
            DataSet ds = getReportData();

            System.Guid gid = new Guid("60215F32-1467-46a5-A5A7-D38E6ECC9CB2");

            MB.WinPrintReport.DefaultReportData    reportData = new MB.WinPrintReport.DefaultReportData("StockOut", ds, pars);
            MB.WinPrintReport.FrmEditPrintTemplete frm        = new MB.WinPrintReport.FrmEditPrintTemplete(reportData, gid);
            frm.ShowDialog();
        }