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

        • <bdo id='v4gGs'></bdo><ul id='v4gGs'></ul>

        asp.net中水晶报表的空白结果问题

        blank result problem with crystal report in asp.net(asp.net中水晶报表的空白结果问题)

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

          <bdo id='ArxLw'></bdo><ul id='ArxLw'></ul>
          <tfoot id='ArxLw'></tfoot>

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

                <tbody id='ArxLw'></tbody>

                  本文介绍了asp.net中水晶报表的空白结果问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用 Visual Studio,ASP.NET.在我的项目中,我应该使用水晶报告.很遗憾当我在 asp.net 中使用水晶报表时,结果显示为空白页.

                  I am using visual studio, ASP.NET. In my project i should use crystal report. unfortunately when i use crystal report in asp.net, the result is showing blank page.

                  <head runat="server">
                  <title>Crystal Report From More Than One Table</title>
                  </head>
                  <body>
                  <form id="form1" runat="server">
                  <table cellpadding="10" cellspacing="10" width="70%" height="300px" align="center"
                  style="border: solid 2px gray;">
                  <tr>
                  <td align="center" style="background-color: SkyBlue;">
                  <span style="font-family: Times New Roman; font-size: 18pt; color: Green;">Customer
                  Product Order Detail Report</span>
                  </td>
                  </tr>
                  <tr>
                  <td align="center">
                  <asp:Panel ID="pnlReport" runat="server" Height="400px">
                  <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" />
                  </asp:Panel>
                  </td>
                  </tr>
                  </table>
                  </form>
                  </body>
                  

                  我的 CS 代码(后面的代码):

                  using System;
                  using System.Configuration;
                  using System.Data;
                  using System.Linq;
                  using System.Web;
                  using System.Web.Security;
                  using System.Web.UI;
                  using System.Web.UI.HtmlControls;
                  using System.Web.UI.WebControls;
                  using System.Web.UI.WebControls.WebParts;
                  using System.Xml.Linq;
                  using CrystalDecisions.CrystalReports.Engine;
                  
                  public partial class _Default : System.Web.UI.Page
                  {
                  protected void Page_Load(object sender, EventArgs e)
                  {
                  ReportDocument cryRpt = new ReportDocument();
                  cryRpt.Load(Server.MapPath("EmployeeCrystalReport.rpt"));
                  CrystalReportViewer1.ReportSource = cryRpt;
                  }
                  }
                  

                  推荐答案

                  该代码是正确的,但您应该多做两步:

                  That code is Correct but you should do two steps more:

                  右击你的项目名称,然后选择Open Folder On File Explorer

                  将名称为crystalreportviewers13的文件夹粘贴到此地址(项目根目录)

                  Paste the folder with name crystalreportviewers13on this address (Project Root)

                  粘贴之后,回到你在visual studio中的解决方案,如果文件夹被隐藏,你可以这样做:

                  After paste that, come back to your solution in visual studio, if the folder is hidden, you can do this:

                  点击显示所有文件按钮

                  Click Show All File button

                  然后右键单击名称为 crystalreportviewers13 且没有颜色图标的文件夹,然后选择 Include In Project

                  then Right click on the folder with name crystalreportviewers13 which no color icon and choose Include In Project

                  <script type="text/javascript" src="/crystalreportviewers13/js/crviewer/crv.js"></script> 
                  

                  这篇关于asp.net中水晶报表的空白结果问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Adding DbContextOptions in Startup.cs not registering data store(在 Startup.cs 中添加 DbContextOptions 未注册数据存储)
                  Migrate html helpers to ASP.NET Core(将 html 帮助程序迁移到 ASP.NET Core)
                  Conditional validation in MVC.NET Core (RequiredIf)(MVC.NET Core 中的条件验证(RequiredIf))
                  Is it possible to serve static files from outside the wwwroot folder?(是否可以从 wwwroot 文件夹外部提供静态文件?)
                  Working with multiple resultset in .net core(在 .net 核心中使用多个结果集)
                  Where all types for http headers gone in ASP.NET 5?(ASP.NET 5 中所有类型的 http 标头都去了哪里?)

                    <small id='9f6O9'></small><noframes id='9f6O9'>

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