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

    Aspose.Words怎樣修改連接oracle和sql庫?[Aspose.Words for .NET]

    發(fā)表于2019-05-10 回復:0 查看:2341  |  
    <pre class='brush: csharp'>connection = CREATE oleobject; connection.ConnectToNewObject("ADODB.Connection"); connection.Open(connectionString); //執(zhí)行數(shù)據(jù)選擇 RS = connection.Execute(commandString);</pre>
    1個回答
    • 1970-01-01 08:00
      private double InterpolateLineSeries(Steema.TeeChart.Styles.Custom series, int firstindex, int lastindex, double xvalue) { int index; for (index = firstindex; index <= lastindex; index++) { if (index == -1 || series.XValues.Value[index] > xvalue) break; } // safeguard if (index < 1) index = 1; else if (index >= series.Count) index = series.Count - 1; // y=(y2-y1)/(x2-x1)*(x-x1)+y1 double dx = series.XValues[index] - series.XValues[index - 1]; double dy = series.YValues[index] - series.YValues[index - 1]; if (dx != 0.0) return dy * (xvalue - series.XValues[index - 1]) / dx + series.YValues[index - 1]; else return 0.0; } 以上函數(shù)可判斷xvalue值處Series的Y值,通過循環(huán)調用,并判斷是否懸停到某條Series,來確認點擊至哪一條線。 并使用 tChart1.Series[0].Visible(false); 隱藏其余Series。 通過LinePen.Width = 5; 使懸停處Series變粗。
      1
      回復 舉報
    回復

    登錄 慧都網(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); })();