You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.3 KiB
C#
44 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Mesnac.Action.Base;
|
|
using System.Windows.Forms;
|
|
using Mesnac.Controls.Default;
|
|
using Mesnac.Controls.Base;
|
|
using Mesnac.Codd.Session;
|
|
using System.Data;
|
|
|
|
namespace Mesnac.Action.Feeding.Report
|
|
{
|
|
#region 报表设计器初始化
|
|
public class ReportDesigner : FeedingAction, IAction
|
|
{
|
|
/// <summary>
|
|
/// 报表设计器初始化
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="design"></param>
|
|
/// <param name="runtime"></param>
|
|
/// <param name="parameters"></param>
|
|
public void Run(RuntimeParameter runtime)
|
|
{
|
|
base.RunIni(runtime);
|
|
FastReport.Report report = new FastReport.Report();
|
|
Control c = GetControlById("MCReportDesigner1");
|
|
if (c == null)
|
|
{
|
|
base.LogError("{报表设计} 缺少name值为MCReportDesigner1报表查询控件...");
|
|
return;
|
|
}
|
|
if (c is MCReportDesigner)
|
|
{
|
|
MCReportDesigner mcrd = c as MCReportDesigner;
|
|
mcrd.Report = report;
|
|
mcrd.PerformLayout();
|
|
}
|
|
}
|
|
}
|
|
#endregion
|
|
}
|