Ejemplo n.º 1
0
		protected override void LoadFromPrimary()
		{
			Pages.Clear();
			ReportModel model = designerLoader.CreateRenderableModel();
			var collectCmd = new CollectParametersCommand(model);
			collectCmd.Run();
			switch (model.DataModel)
			{
					case GlobalEnums.PushPullModel.FormSheet :
					{
						exportRunner.RunReport(model,(ReportParameters)null);
						break;
					}
					case GlobalEnums.PushPullModel.PullData:
					{
						exportRunner.RunReport(model,(ReportParameters)null);
						break;
					}
					case GlobalEnums.PushPullModel.PushData:
					{
						var cmd = new DataSetFromXsdCommand();
						cmd.Run();
						System.Data.DataSet ds = cmd.DataSet;
						exportRunner.RunReport(model,ds.Tables[0],(ReportParameters)null);
						break;
					}
				default:
					throw new InvalidReportModelException();
			}
			PreviewViewModel previewViewModel = new PreviewViewModel (model.ReportSettings,exportRunner.Pages);
			viewer.SetBinding(previewViewModel);
		}
Ejemplo n.º 2
0
		public override void Run()
		{
			base.Run();
			DataSetFromXsdCommand cmd = new DataSetFromXsdCommand();
			cmd.Run();
			System.Data.DataSet ds = cmd.DataSet;
			SD.StatusBar.SetMessage("Connect...");
			base.ReportViewer.RunReport(base.Model,ds.Tables[0],null);
		}
Ejemplo n.º 3
0
        public override void Run()
        {
            base.Run();
            DataSetFromXsdCommand cmd = new DataSetFromXsdCommand();

            cmd.Run();
            System.Data.DataSet ds = cmd.DataSet;
            WorkbenchSingleton.StatusBar.SetMessage("Connect...");
            base.ReportViewer.RunReport(base.Model, ds.Tables[0], null);
        }
Ejemplo n.º 4
0
        public override void Run()
        {
            base.Run();
            DataSetFromXsdCommand cmd = new DataSetFromXsdCommand();

            cmd.Run();
            System.Data.DataSet ds = cmd.DataSet;
            ICSharpCode.SharpDevelop.StatusBarService.SetMessage("Connect...");
            base.ReportViewer.RunReport(base.Model, ds.Tables[0], null);
        }