• <menu id="w2i4a"></menu>
  • 首頁 > 慧問 > 頻道

    xtrareport 運行時進行報表設(shè)計數(shù)據(jù)源已經(jīng)綁定,但預(yù)覽不了是怎么回事兒?

    發(fā)表于2019-05-10 回復(fù):0 查看:1927  |  
    <pre class='brush: csharp'>{{{public Report() { InitializeComponent(); // Create a connection. SqlConnection connection = new SqlConnection(@"User ID=sa;password=Hzh1188;Initial Catalog=FR7_WMS_FY_Test;Data Source=HUANGZH"); // Create a data adapter and a dataset. SqlDataAdapter adapter = new SqlDataAdapter("SELECT * FROM sb_user", connection); DataSet dataSet1 = new DataSet(); // Specify the data adapter and the data source for the report. // Note that you must fill the datasource with data because it is not bound directly to the specified data adapter. this.DataAdapter = adapter; adapter.Fill(dataSet1, "sb_user"); this.DataSource = dataSet1; this.DataMember = "sb_user"; //this.ShowPreview(); } }}}</pre> 動態(tài)綁定數(shù)據(jù)源,但預(yù)覽的時候沒東西顯示
    1個回答
    • 1970-01-01 08:00
      你可以在初始化時將圖表的尺寸設(shè)置成百分比,具體可參考這篇教程:[FusionCharts使用教程:自定義圖表——修改圖表尺寸和類型](http://www.xiangyinys.com/article/2015/11/26/23067.html)
      1
      回復(fù) 舉報
    回復(fù)

    登錄 慧都網(wǎng)發(fā)表評論

    掃碼咨詢


    添加微信 立即咨詢

    電話咨詢

    客服熱線
    023-68661681

    TOP
    三级成人熟女影院,欧美午夜成人精品视频,亚洲国产成人乱色在线观看,色中色成人论坛 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();