Esempio n. 1
0
 /// <summary>
 /// 默认打印样式
 /// </summary>
 public void LoadDefaultStyle(FastReport.Design.StandardDesigner.DesignerControl designerReport)
 {
     FastReport.Report rep = DefaultReport();
     if (rep == null)
     {
         return;
     }
     designerReport.Report = rep;
     designerReport.RefreshLayout();
 }
Esempio n. 2
0
        private void frmReportDesigner_Load(object sender, EventArgs e)
        {
            FastReport.Design.StandardDesigner.DesignerControl designerControl1 = new FastReport.Design.StandardDesigner.DesignerControl();
            designerControl1.Parent = this;
            designerControl1.Dock   = DockStyle.Fill;
            designerControl1.Show();
            Report report = new Report();

            designerControl1.Report = report;
            designerControl1.RefreshLayout();
        }
Esempio n. 3
0
        private void SetReport(FastReport.Report rep, FastReport.Design.StandardDesigner.DesignerControl ctr)
        {
            Action <FastReport.Report> setReportAction = rep0 => { ctr.Report = rep0; ctr.RefreshLayout(); };//Action<T>本身就是delegate类型,省掉了delegate的定义

            if (ctr.InvokeRequired)
            {
                ctr.Invoke(setReportAction, rep);
            }
            else
            {
                setReportAction(rep);
            }
        }