<i id='Kkh6k'><tr id='Kkh6k'><dt id='Kkh6k'><q id='Kkh6k'><span id='Kkh6k'><b id='Kkh6k'><form id='Kkh6k'><ins id='Kkh6k'></ins><ul id='Kkh6k'></ul><sub id='Kkh6k'></sub></form><legend id='Kkh6k'></legend><bdo id='Kkh6k'><pre id='Kkh6k'><center id='Kkh6k'></center></pre></bdo></b><th id='Kkh6k'></th></span></q></dt></tr></i><div id='Kkh6k'><tfoot id='Kkh6k'></tfoot><dl id='Kkh6k'><fieldset id='Kkh6k'></fieldset></dl></div>
      <bdo id='Kkh6k'></bdo><ul id='Kkh6k'></ul>

    <tfoot id='Kkh6k'></tfoot>

      <small id='Kkh6k'></small><noframes id='Kkh6k'>

    1. <legend id='Kkh6k'><style id='Kkh6k'><dir id='Kkh6k'><q id='Kkh6k'></q></dir></style></legend>

      使用 C# 显示水晶报表

      时间:2023-07-27
    2. <tfoot id='s3SMT'></tfoot>

        <small id='s3SMT'></small><noframes id='s3SMT'>

          <tbody id='s3SMT'></tbody>

          • <bdo id='s3SMT'></bdo><ul id='s3SMT'></ul>
            • <i id='s3SMT'><tr id='s3SMT'><dt id='s3SMT'><q id='s3SMT'><span id='s3SMT'><b id='s3SMT'><form id='s3SMT'><ins id='s3SMT'></ins><ul id='s3SMT'></ul><sub id='s3SMT'></sub></form><legend id='s3SMT'></legend><bdo id='s3SMT'><pre id='s3SMT'><center id='s3SMT'></center></pre></bdo></b><th id='s3SMT'></th></span></q></dt></tr></i><div id='s3SMT'><tfoot id='s3SMT'></tfoot><dl id='s3SMT'><fieldset id='s3SMT'></fieldset></dl></div>

            • <legend id='s3SMT'><style id='s3SMT'><dir id='s3SMT'><q id='s3SMT'></q></dir></style></legend>

              1. 本文介绍了使用 C# 显示水晶报表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我对 C# 比较陌生,而且我从未使用过 Crystal Reports,所以如果我确实使用了不正确的术语,我深表歉意.我正在尝试显示由某些 C# 代码调用的报告.通过在这里跟踪很多线程,我设法提出了以下代码,它确实构建了一个调试.但是,当代码运行时,它不会显示报告.

                I am relatively new to C# and i have never used Crystal Reports so i apologise if i do use the incorrect terminology. I am trying to display a report which is called by some C# code. By following a lot of threads on here, i have managed to come up with the following code which does build an debug. However, when the code is run, it does not display the report.

                代码如下:

                private void forAllQualitiesToolStripMenuItem_Click(object sender, EventArgs e) {
                    CrystalReportViewer rv = new CrystalReportViewer();
                    string reportPath = @"C:Documents and Settings
                pDesktopStockByStatus.rpt"; 
                
                    ReportDocument r = new ReportDocument();
                
                    r.Load(reportPath);
                    rv.Visible = false; // i put this in because when i ran the code without it, it said the report must not be visible and the program would fall down
                    rv.ReportSource = r;
                    rv.InitReportViewer();
                    ShowDialog(rv);
                }
                

                推荐答案

                    ReportDocument cryRpt = new ReportDocument();
                    cryRpt.Load(@"CRYSTAL REPORT PATH HERECrystalReport1.rpt");
                    crystalReportViewer1.ReportSource = cryRpt;
                    crystalReportViewer1.Refresh();
                

                这篇关于使用 C# 显示水晶报表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:Crystal Reports 交叉表列之间的空间 下一篇:从水晶报表中的路径加载动态图像

                相关文章

              2. <i id='qHWVe'><tr id='qHWVe'><dt id='qHWVe'><q id='qHWVe'><span id='qHWVe'><b id='qHWVe'><form id='qHWVe'><ins id='qHWVe'></ins><ul id='qHWVe'></ul><sub id='qHWVe'></sub></form><legend id='qHWVe'></legend><bdo id='qHWVe'><pre id='qHWVe'><center id='qHWVe'></center></pre></bdo></b><th id='qHWVe'></th></span></q></dt></tr></i><div id='qHWVe'><tfoot id='qHWVe'></tfoot><dl id='qHWVe'><fieldset id='qHWVe'></fieldset></dl></div>
                <tfoot id='qHWVe'></tfoot>
              3. <legend id='qHWVe'><style id='qHWVe'><dir id='qHWVe'><q id='qHWVe'></q></dir></style></legend>
                  <bdo id='qHWVe'></bdo><ul id='qHWVe'></ul>

                1. <small id='qHWVe'></small><noframes id='qHWVe'>