显示报告时网页为空白 [英] Web page is blank when displaying a report

查看:96
本文介绍了显示报告时网页为空白的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Visual Studio 2012中的Crystal Report构建报告。

我使用报告向导创建了一个报告,并且我在页面加载时在asp.net页面中加载报告但页面是空白的,没有任何东西被显示出来。



这是我的电话:



I'm trying to build a report using Crystal Report in Visual studio 2012.
I created a report using report wizard and I'm loading the report in an asp.net page at page load but the page is blank nothing is being displyed.

Here is my calling:

Dim cryRpt As New ReportDocument
        cryRpt.Load("C:\WebApplicationTestCrystalRepor\WebApplicationTestCrystalRepor\CrystalReport1.rpt")
            CrystalReportViewer1.ReportSource = cryRpt
            CrystalReportViewer1.RefreshReport()





我缺少什么?



What i am missing?

推荐答案

您好,

您还没有在ReportDocument中设置 SetDataSource 属性。

First从数据库加载数据并将其设置为ReportDocument。

参考:使用Crystal Reports生成报告

谢谢
Hello ,
You have not set the SetDataSource property in your ReportDocument.
First load the Data from Database and set it to ReportDocument.
Refer : Generate a Report using Crystal Reports
thanks


这篇关于显示报告时网页为空白的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆