public frmRptDesign(RptCommonBase RptCommon) { InitializeComponent(); this.StartPosition = FormStartPosition.CenterParent; report1.Load(RptCommon.RptFileName); designerControl1.Report = report1; }
public static void ShowForm(RptCommonBase rpt) { frmRptPreview previewForm = new frmRptPreview(rpt); previewForm.init(); previewForm.Preview(); previewForm.ShowDialog(); }
private frmRptPreview(RptCommonBase rpt) { FastReport.Utils.Res.LoadLocale(Path.GetDirectoryName(typeof(Report).Assembly.Location) + @"\Localization\Chinese (Simplified).frl"); InitializeComponent(); //this.WindowState = FormWindowState.Maximized; this.StartPosition = FormStartPosition.CenterParent; this.rpt = rpt; //previewControl1.Report.Export() //FastReport.Export.OoXML.Excel2007Export }