小弟才开始接触水晶报表,想找个在winform和webform下的水晶报表示例,简单明了的,越基础越好,谢谢!!!!!

解决方案 »

  1.   

    给我也一份可以么?[email protected]
      

  2.   

    偶也想要一份
    [email protected]
      

  3.   

    我也想要一份
    mail: [email protected]
    謝謝!!!
      

  4.   

    给我一份好吗 供学习之用 谢谢!!!
    [email protected]
      

  5.   

    我也想学习一下 谢谢..
    [email protected]
      

  6.   

    我也想要一份,因为我现在也正在做水晶报表。
    Mail:[email protected]
      

  7.   

    我也想要一份
    mail: [email protected]謝謝!!!
      

  8.   

    我也想要一份
    mail: [email protected]謝謝!!!
      

  9.   

    我也想要一份
    mail: [email protected]謝謝!!!
      

  10.   

    http://www.bypro.net/20069/ShowPost.aspx
      

  11.   

    也给我一份吧,这几天郁闷死了,就想找这方面的资料,
    我在这里谢谢高手了。
    mail:[email protected]
      

  12.   

    楼主的邮箱:[email protected] 谢谢!!!
      

  13.   

    小弟还有个问题:为什么我用.net自带的报表查看器绑定了报表源,运行的时候总是有个数据库的登录框出现呢???
    我不晓得哪里出了问题,请各位指点!!!谢谢!!
      

  14.   

    如果你用的是水晶报表的推模式,一般不用设置登陆信息,但是要这样写:obj.SetDataSource(this.ds.Tables["tablename"]);如果你写成了obj.SetDataSource(this.ds)就会有登陆框的。 如果你用的是水晶报表的拉模式,你就一定要写上登陆信息:crReportDocument = new OracleReport();   //Set the crConnectionInfo with the current values stored in the report
       crConnectionInfo = crReportDocument.Database.Tables[0].LogOnInfo.ConnectionInfo;   /* Populate the ConnectionInfo Objects Properties with the appropriate values for
       the ServerName, User ID, Password and DatabaseName. However, since Oracle 
       works on Schemas, Crystal Reports does not recognize or store a DatabaseName. 
       Therefore, the DatabaseName property must be set to a BLANK string. */
       crConnectionInfo.DatabaseName = "";
       crConnectionInfo.ServerName = "Your Server Name";
       crConnectionInfo.UserID = "Your User ID";
       crConnectionInfo.Password = "Your Password";   //Set the CrDatabase Object to the Report's Database
       crDatabase = crReportDocument.Database;   //Set the CrTables object to the Tables collection of the Report's dDtabase
       crTables = crDatabase.Tables;   //Loop through each Table object in the Tables collection and apply the logon info
       //specified ealier. Note this sample only has one table so the loop will only execute once
       foreach (Table crTable in crTables)
       {
        crTableLogOnInfo = crTable.LogOnInfo;
        crTableLogOnInfo.ConnectionInfo = crConnectionInfo;
        crTable.ApplyLogOnInfo (crTableLogOnInfo);    // if you wish to change the schema name as well, you will need to set Location property as follows:
        // crTable.Location = "<new schema name>." + crTable.Name;
       }   //Set the ReportSource of the CrystalReportViewer to the strongly typed Report included in the project
       crystalReportViewer1.ReportSource = crReportDocument; 还有一点要注意:
    如果你用到了子报表,一定要处理://Go through each sections in the main report and identify the subreport by name
       crSections = crReportDocument.ReportDefinition.Sections;   foreach(Section crSection in crSections)
       {
        crReportObjects = crSection.ReportObjects;
        //loop through all the report objects to find all the subreports
        foreach(ReportObject crReportObject in crReportObjects)
        {
         if (crReportObject.Kind == ReportObjectKind.SubreportObject)
         {
          //you will need to typecast the reportobject to a subreport 
          //object once you find it
          crSubreportObject = (SubreportObject)crReportObject;      //open the subreport object
          crSubReportDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName);
          //Once the correct subreport has been located pass it the 
          //appropriate dataset
          if(crSubReportDoc.Name == "FirstSub") 
          {
           //crSubReportDoc.Database.Tables[0].SetDataSource(ds);
           crSubReportDoc.SetDataSource(ds);
          }
         }
        }
       }
       crystalReportViewer1.ReportSource = crReportDocument;同样crSubReportDoc.SetDataSource(ds);改为:crSubReportDoc.SetDataSource(ds.Tables["tablename"]);
      

  15.   

    http://blog.csdn.net/lyb_abiandbel/archive/2005/09/05/471660.aspx
      

  16.   

    To:lyb_abiandbel(渴望成为高手) 
    不好意思,小弟真的愚吨请问什么是推模式什么是拉模式,有这方面的资料吗?拜托了!!!!
      

  17.   

    我也想要一份,谢谢了
    [email protected]
      

  18.   

    拉和推模型
    为了向开发人员提供最灵活的数据访问方法,Crystal Reports 数据库驱动程序被设计为可同时提供数据访问的拉模型和推模型。 拉模型
    在拉模型中,驱动程序将连接到数据库并根据需要将数据“拉”进来。使用这种模型时,与数据库的连接和为了获取数据而执行的 SQL 命令都同时由 Crystal Reports 本身处理,不需要开发人员编写代码。如果在运行时无须编写任何特殊代码,则使用拉模型。推模型
    相反,推模型需要开发人员编写代码以连接到数据库,执行 SQL 命令以创建与报表中的字段匹配的记录集或数据集,并且将该对象传递给报表。该方法使您可以将连接共享置入应用程序中,并在 Crystal Reports 收到数据之前先将数据筛选出来。
    具体的你到论坛搜索一下,很容易找到的.
      

  19.   

    小弟也要一份
    [email protected]
    谢谢前辈了!
      

  20.   

    [email protected]
    终于有人问这个问题了,流泪呀
      

  21.   

    我要我要,我也要!!!
    [email protected]
      

  22.   

    哎,来晚了。我刚在研究报表,我这有一个视频教程,不错的~要的MSN:[email protected]
      

  23.   

    wo ye yao [email protected]
      

  24.   

    wo ye yao [email protected]
      

  25.   

    我也要:[email protected]
      

  26.   

    http://blog.csdn.net/haibodotnet/archive/2003/12/11/21546.aspx无论是winform还是webform这里都有
      

  27.   

    我也想要一份,不知道晚不晚。在此先谢谢了
    Email:[email protected]