日期:2014-05-20 浏览次数:20763 次
<CR:CrystalReportViewer ID="crOrder" runat="server" AutoDataBind="True" BestFitPage="False" Height="1000px" Width="1200px" EnableParameterPrompt="False" ReportSourceID="ReportSourceOrder" /> <CR:CrystalReportSource ID="ReportSourceOrder" runat="server"> <Report FileName="..\setreport\cg_report.rpt"> <DataSources> <CR:DataSourceRef DataSourceID="SqlDataSourceOrder" TableName="cgddxx28" /> </DataSources> </Report> </CR:CrystalReportSource> <asp:SqlDataSource ID="SqlDataSourceOrder" runat="server" ConnectionString="<%$ ConnectionStrings:dxcerpConnectionString %>" SelectCommand="SELECT * FROM cgddxx28"></asp:SqlDataSource>
if (Request.QueryString["cgddh250"] != null) SqlDataSourceOrder.SelectCommand = "SELECT * FROM cgddxx28 where cgddh250='" + Request.QueryString["cgddh250"] + "'";