主报表里面由许多重复的子报表组成
子报表的数量和数据由主报表中的数据决定
请问在vs2003系统自带的报表怎么做??
子报表的数量和数据由主报表中的数据决定
请问在vs2003系统自带的报表怎么做??
解决方案 »
- serialport握手协议?
- 初级问题:ado.net实体数据模型还是linq to sql?
- 如何求DataGridView控件某一列的平均值、总和、最大值、最小值。注:该列是双精度数据
- iphone 模拟器
- 请教:一个自己看不懂的报错。谢谢!!!
- 很弱的问题,.net2005中的下拉列表的问题
- 怎么不能操作系统队列消息?
- datagrid中按回车健跳到旁边一个单元格,该怎么实现,谢谢
- 使用AxWebBrowser获取网页信息到剪贴板如何及时释放所占资源?
- ■■问一个关于Remoting的问题,急■■
- "未将对象引用设置到对象的实例"错误
- winform中treeview控件绑定数据库问题
/// Bind CrystalReport
/// </summary>
/// <param name="strS">sql</param>
private void bdReport(string strS)
{
oCR = new CrystalReport1();
SqlConnection cnn = new SqlConnection(ConfigurationSettings.AppSettings["ConnectionSqlServer"]); SqlDataAdapter cmd1 = new SqlDataAdapter(strS,cnn); //Create and fill the DataSet. DataSet2 ds = new DataSet2();
cmd1.Fill(ds,"meeting"); // SqlDataAdapter cmd2 = new SqlDataAdapter("select * from realplan where rplanid in (select top 10000 planid from ("+sqlStr+")as a order by planid)", cnn);
SqlDataAdapter cmd2 = new SqlDataAdapter(SqlIsOper, cnn);
cmd2.Fill(ds,"realplan"); //Create the relation between the Authors and Titles tables.
ds.Relations.Add("mo",
ds.Tables["meeting"].Columns["planid"],
ds.Tables["realplan"].Columns["rplanid"]); //binding reportViewer
oCR.SetDataSource(ds); this.CrystalReportViewer1.ReportSource = oCR; //Close the connection.
cnn.Close();
}