如何制作查询结果的水晶报告 [英] How to make a crystal report of the query result

查看:61
本文介绍了如何制作查询结果的水晶报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的C#.net编程新手。我很难想到如何做到这一点。

我有这个代码

I'm new here and new to C# .net programming. I'm having hard time thinking how to do this.
I have this code

private void button2_Click(object sender, EventArgs e)
{        
    if (!string.IsNullOrEmpty(txtsearch.Text.Trim()))
    {
    
        SqlCommand cmdser = new SqlCommand(connection.cmdsearch + txtsearch.Text.ToUpper() + "'", connection.connect);
        SqlDataAdapter da = new SqlDataAdapter(connection.cmdsearch + txtsearch.Text.ToUpper() + "%'", connection.connect);
        connection.connect.Close();
        DataTable dt = new DataTable();
        da.Fill(dt);
    
        if (dt.Rows.Count > 0)
        {
            gv1.DataSource = dt;
    
        }
        else
        {
            MessageBox.Show("No record found", "Important Message");
            txtsearch.Clear();
        }
        connection.connect.Close();
    
    }
    else
    {
        MessageBox.Show("Fill up the field", "Alert");
        
    }
}



如何为我的数据源制作水晶报告?

谢谢提前!!


How can I make a crystal report for my data source?
Thanks in Advance!!

推荐答案

查看本教程

来自SQL查询的C#Crystal Reports [ ^ ]


hi

试试这个链接

如何在Crystal报表中将访问db更改为sql db? [ ^ ]






[ ^ ]



如何创建简单asp.net中的Crystal Reports带有简洁的示例 [ ^ ]


这篇关于如何制作查询结果的水晶报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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