首页 > 慧问 > 频道

Aspose.Words怎样修改连接oracle和sql库?[Aspose.Words for .NET]

发表于2019-05-10 回复:0 查看:2577  |  
<pre class='brush: csharp'>connection = CREATE oleobject; connection.ConnectToNewObject("ADODB.Connection"); connection.Open(connectionString); //执行数据选择 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; } 以上函数可判断xvalue值处Series的Y值,通过循环调用,并判断是否悬停到某条Series,来确认点击至哪一条线。 并使用 tChart1.Series[0].Visible(false); 隐藏其余Series。 通过LinePen.Width = 5; 使悬停处Series变粗。
    1
    回复 举报
回复

登录 慧都网发表评论

扫码咨询


添加微信 立即咨询

电话咨询

客服热线
023-68661681

TOP