本文整理汇总了C#中ReportDocument.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# ReportDocument.ToString方法的具体用法?C# ReportDocument.ToString怎么用?C# ReportDocument.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ReportDocument
的用法示例。
在下文中一共展示了ReportDocument.ToString方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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 = crptViewer;
//ket thuc doan gan bien
mv_oRptFieldObj = mv_oRptDoc.ReportDefinition.ReportObjects["Field150181"] as FieldObject;
mv_oNguoiKy = new cls_SignInfor(mv_oRptDoc.ToString(), "", ReportSourceTable);
//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.UserName).Replace("\t", Strings.Chr(34) + "&Chr(13)&" + Strings.Chr(34)) + Strings.Chr(34);
//mv_oRptDoc.DataDefinition.FormulaFields["Formula_1"].Text = string.Format("'{0}'", mv_oNguoiKy.mv_NOI_DUNG);
}
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
cmdTrinhKy.Visible = false;
}
}