比如用VS2005自带的水晶报表注册收不收费,和其它要注意的事项。以及深入学习的提示。

解决方案 »

  1.   

    //****下面是水晶报表操作共公接口//****报表举目类型
        public enum RepDocumentEnum
        { 
            SystemUserRetDocument,          //系统用户信息
            DeptNameRetDocument,            //部门信息
            OnLinOrderRetDocumnet,          //在线订单信息
            OtherRepDocument,               //其它报表
        }    public static void LoadCrytReptView(ref DataSet DSet, string repDocumentPath, RepDocumentEnum mRepDocumentEnum, ref CrystalDecisions.Web.CrystalReportViewer CryRepView)
        { 
            //*****报表处理连接
            ConnectionInfo connectionInfo = new  ConnectionInfo();
            connectionInfo.ServerName = ReadWebConfigNode("ServerName");
            connectionInfo.DatabaseName = ReadWebConfigNode("DataBaseName");
            connectionInfo.UserID = ReadWebConfigNode("UserID");
            connectionInfo.Password = ReadWebConfigNode("Password");        //****构造一个报表文档
            ReportDocument oRep = new ReportDocument();        switch (mRepDocumentEnum)
            { 
                //*****加载系统用户报表
                case RepDocumentEnum.SystemUserRetDocument:                oRep.Load(repDocumentPath);
                    oRep.SetDataSource(DSet.Tables[0]);
                    break;
                //*****加载部门报表
                case RepDocumentEnum.DeptNameRetDocument:
                    oRep.Load(repDocumentPath);
                    oRep.SetDataSource(DSet.Tables[0]);
                    break;
                //****加载在线订单报表
                case RepDocumentEnum.OnLinOrderRetDocumnet:
                    oRep.Load(repDocumentPath);
                    oRep.SetDataSource(DSet.Tables[0]);
                    break;
                //****其它报表
                case RepDocumentEnum.OtherRepDocument:
                    oRep.Load(repDocumentPath);
                    oRep.SetDataSource(DSet.Tables[0]);
                    break;
            }        CryRepView.ReportSource = oRep;
            SetDBLogonForRetot(ref connectionInfo, ref oRep);
        }
      

  2.   

    招.net开发工程师,有兴趣的可以投递简历至: 
    [email protected]