当前位置: 首页>>代码示例>>C#>>正文


C# ReportDocument.ToString方法代码示例

本文整理汇总了C#中CrystalDecisions.CrystalReports.Engine.ReportDocument.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# ReportDocument.ToString方法的具体用法?C# ReportDocument.ToString怎么用?C# ReportDocument.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CrystalDecisions.CrystalReports.Engine.ReportDocument的用法示例。


在下文中一共展示了ReportDocument.ToString方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: frmPrintPreview

 // private Logger log;
  public frmPrintPreview(string FormTitle, CrystalDecisions.CrystalReports.Engine.ReportDocument RptDoc, bool pv_bSetContent,bool pv_bDisplayPrintButton,string TitleReport)
      : base()
  {
      
      //This call is required by the Windows Form Designer.
      InitializeComponent();
      log = LogManager.GetCurrentClassLogger();
      Utility.loadIconToForm(this);
      //Add any initialization after the InitializeComponent() call
      this.Text = FormTitle;
      this.RptDoc = RptDoc;
      this.sTIEUDE = TitleReport;
      
      this.crptViewer.ReportSource = this.RptDoc;
      cmdTrinhKy.Visible = pv_bSetContent;
      mv_bSetContent = pv_bSetContent;
      this.crptViewer.ShowRefreshButton = false;
      this.crptViewer.ShowPrintButton = pv_bDisplayPrintButton;
      InitializeEvents();
      sTIEUDE = new cls_SignInfor().SetTieuDe(RptDoc.ToString(), sTIEUDE);
    
  }
开发者ID:khaha2210,项目名称:radio,代码行数:23,代码来源:frmPrintPreview.cs

示例2: addTrinhKy_OnFormLoad

        public void addTrinhKy_OnFormLoad()
        {
            //Ham nay XuanDT them vao
            try
            {
                //doan gan cac bien: doan nay co the phai thay doi ten bien cho phu hop
                mv_oRptDoc = RptDoc;
                mv_oViewDoc = this.crptViewer;
                //ket thuc doan gan bien

                mv_oRptFieldObj = GetTrinhky(RptDoc.ParameterFields);
              //  if (mv_oRptFieldObj == null) return;
                mv_oNguoiKy = new cls_SignInfor(string.IsNullOrEmpty(crptTrinhKyName) ? mv_oRptDoc.ToString() : crptTrinhKyName, "");
                //chkPrint_CheckedChanged(chkPrint, New System.EventArgs)
                if (mv_oNguoiKy._TonTai)
                {
                    SetParamAgain(RptDoc.ParameterFields);
                    //if (mv_bSetContent)
                    //{

                    //    mv_oRptDoc.ReportDefinition.ReportObjects["txtTrinhky"]..Text = mv_oNguoiKy.mv_NOI_DUNG.Replace("&NHANVIEN", globalVariables.gv_strTenNhanvien);

                    //}
                    //else
                    //{
                    //    mv_oRptDoc.DataDefinition.FormulaFields["Formula_1"].Text = "";
                    //}

                }
                else
                {
                    SetParamAgain(RptDoc.ParameterFields);
                    if (string.IsNullOrEmpty(crptTrinhKyName))
                        mv_oNguoiKy = new cls_SignInfor(mv_oRptFieldObj, "", RptDoc.ToString(), "");
                    else
                    {
                        mv_oNguoiKy = new cls_SignInfor(mv_oRptFieldObj, "", crptTrinhKyName, "");
                    }

                }
                mv_oViewDoc.ReportSource = RptDoc;
            }
            catch (Exception ex)
            {
                mv_oRptText = null;
                //an nut tuy chon di
                log.Error("Loi trong qua trinh load thong tin trih ky={0}", ex);
                this.cmdTrinhKy.Visible = false;
            }
        }
开发者ID:khaha2210,项目名称:CodeNewTeam,代码行数:50,代码来源:frmPrintPreview.cs

示例3: addTrinhKy_OnFormLoad

	public void addTrinhKy_OnFormLoad()
	{
		//Ham nay XuanDT them vao
		try {
			//doan gan cac bien: doan nay co the phai thay doi ten bien cho phu hop
			mv_oRptDoc = RptDoc;
			mv_oViewDoc = this.crptViewer;
			//ket thuc doan gan bien
			mv_oRptFieldObj = mv_oRptDoc.ReportDefinition.ReportObjects["Field150181"] as FieldObject;
			mv_oNguoiKy = new cls_SignInfor(mv_oRptDoc.ToString(), "");
			//chkPrint_CheckedChanged(chkPrint, New System.EventArgs)
			if (mv_oNguoiKy._TonTai) {
				mv_oNguoiKy.setValueToRPT(ref mv_oRptFieldObj);
				if (mv_bSetContent)
				{
				    mv_oRptDoc.DataDefinition.FormulaFields["Formula_1"].Text = Strings.Chr(34) +
				                                                                mv_oNguoiKy.mv_NOI_DUNG.Replace("&NHANVIEN",
				                                                                                                globalVariables.
				                                                                                                    gv_sStaffName).
				                                                                    Replace("#$X$#",
				                                                                            Strings.Chr(34) + "&Chr(13)&" +
				                                                                            Strings.Chr(34)) + Strings.Chr(34);

				}
				else {
					mv_oRptDoc.DataDefinition.FormulaFields["Formula_1"].Text = "";
				}
				mv_oViewDoc.ReportSource = RptDoc;
			}
			else {
				mv_oNguoiKy = new cls_SignInfor(mv_oRptFieldObj, "", RptDoc.ToString(), mv_oRptDoc.DataDefinition.FormulaFields["Formula_1"].Text);
			}
		}
		catch (Exception ex) {
			mv_oRptText = null;
			//an nut tuy chon di
            log.Error("Loi trong qua trinh load thong tin trih ky={0}",ex);
			this.cmdTrinhKy.Visible = false;
		}
	}
开发者ID:khaha2210,项目名称:radio,代码行数:40,代码来源:frmPrintPreview.cs


注:本文中的CrystalDecisions.CrystalReports.Engine.ReportDocument.ToString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。