我迫不及待地想创建子报告 [英] plz urgently i m stuck in creating sub reports
问题描述
plz我迫不及待地想创建子报告
1小时32分钟前
我有一份上级报告要显示后勤者
对于每个供应商,我都会显示产品的子报告
我可以确定,但是当我创建asp.net页并报告查看器时,没有产品显示
仅上级报告的上位者
但是子报告不显示
plz urgently i m stuck in creating sub reports
1 hours, 32 minutes ago
i have a parent report to display supliers
for each suplier i display a subreport for products
i crystal its ok but when i create asp.net page and report viewer no products display
only supliers of parent report
but child report does not display
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="True"
EnableDatabaseLogonPrompt="False" Height="1039px" ReportSourceID="CrystalReportSource1"
Width="901px" />
<CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
<Report FileName="CrystalReportParent.rpt">
</Report>
</CR:CrystalReportSource>
<br />
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
SelectCommand="SELECT [SupplierID], [CompanyName], [ContactName], [ContactTitle], [Address], [City], [Region], [PostalCode], [Country], [Phone], [Fax], [HomePage] FROM [Suppliers]">
</asp:SqlDataSource>
我使用sql数据源
后面的C#编码
i use sql data source
C# cod e behind
protected void Page_Load(object sender, EventArgs e)
{
CrystalReportSource1.ReportDocument.SetDataSource(SqlDataSource1.Select(DataSourceSelectArguments.Empty));
}
源代码在这里http://www.4shared.com/file/aT84I0--/WebSite1.html
请提供我缺少的建议吗????
the source code is here http://www.4shared.com/file/aT84I0--/WebSite1.html
plz advice what am i missing ????
推荐答案
ConnectionStrings:NorthwindConnectionString %> " SelectCommand =" 选择[SupplierID],[CompanyName],[ContactName],[ContactTitle],[Address],[City],[Region],[PostalCode],[Country],[Phone],[Fax],[HomePage] [供应商]" < /asp:SqlDataSource >
ConnectionStrings:NorthwindConnectionString %>" SelectCommand="SELECT [SupplierID], [CompanyName], [ContactName], [ContactTitle], [Address], [City], [Region], [PostalCode], [Country], [Phone], [Fax], [HomePage] FROM [Suppliers]"> </asp:SqlDataSource>
我使用sql数据源
后面的C#编码
i use sql data source
C# cod e behind
protected void Page_Load(object sender, EventArgs e)
{
CrystalReportSource1.ReportDocument.SetDataSource(SqlDataSource1.Select(DataSourceSelectArguments.Empty));
}
源代码在这里http://www.4shared.com/file/aT84I0--/WebSite1.html
请给我建议,我缺少什么????
the source code is here http://www.4shared.com/file/aT84I0--/WebSite1.html
plz advice what am i missing ????
有关Crystal报表中的子报表,请查看:
将子报表添加到原始报表中 [使用Crystal报表创建子报表 [ ^ ]
在Crystal Reports中创建子报表 [
For Sub-reports in Crystal report, look here:
Adding a Subreport to the Original Report[^]
Creating Sub-Reports Using Crystal Reports[^]
Create a Subreport in Crystal Reports [^]
这篇关于我迫不及待地想创建子报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!