代码如下为什么显示的时候什么也没有呢?代码如下:
Private Sub drawLine(key As String)
Dim tmpI As Integer
Dim tmpJ As Integer
With MSChart
.ShowLegend = True '显示图例
.Stacking = False '叠置系列
.TitleText = "指标计划值与实际值对比图" '图表标题
'.FootnoteText = "hehe" '页脚
.Plot.Axis(VtChAxisIdY).ValueScale.Auto = False
.Plot.Axis(VtChAxisIdY).ValueScale.Maximum = 30
.Plot.Axis(VtChAxisIdY).ValueScale.MajorDivision = 30 \ 5
.Plot.Axis(VtChAxisIdY).ValueScale.MinorDivision = 5
.Plot.Axis(VtChAxisIdY2).AxisScale.Hide = True
.Plot.Axis(VtChAxisIdY).AxisTitle.TextLayout.Orientation = VtOrientationVertical
'.Plot.Axis(VtChAxisIdY).AxisTitle.TextLayout.Orientation = VtOrientationUp
.Plot.Axis(VtChAxisIdY).AxisTitle.Text = "sdfasd"
.ColumnCount = 1
.RowCount = 2
If rs.State = 1 Then
rs.Close
End If
Dim id
id = Right(key, Len(key) - 1)
rs.Open "SELECT * FROM project_criterion where criterionID = " & id, conn
.Row = 1
.RowLabel = "计划值"
.Data = Val(rs("planValue"))
.Row = 2
.RowLabel = "实际值"
.Data = Val(rs("factValue"))
'.DataGrid.ColumnLabel(2, 1) = "LLLLLLLLLLLLLLLLLLLLL"
'.DataGrid.RowLabel(2, 1) = "cccccc"
'.Enabled = False
'MsgBox .ActiveSeriesCount '图表系列数(即图例个数)
End With
End Sub
Private Sub drawLine(key As String)
Dim tmpI As Integer
Dim tmpJ As Integer
With MSChart
.ShowLegend = True '显示图例
.Stacking = False '叠置系列
.TitleText = "指标计划值与实际值对比图" '图表标题
'.FootnoteText = "hehe" '页脚
.Plot.Axis(VtChAxisIdY).ValueScale.Auto = False
.Plot.Axis(VtChAxisIdY).ValueScale.Maximum = 30
.Plot.Axis(VtChAxisIdY).ValueScale.MajorDivision = 30 \ 5
.Plot.Axis(VtChAxisIdY).ValueScale.MinorDivision = 5
.Plot.Axis(VtChAxisIdY2).AxisScale.Hide = True
.Plot.Axis(VtChAxisIdY).AxisTitle.TextLayout.Orientation = VtOrientationVertical
'.Plot.Axis(VtChAxisIdY).AxisTitle.TextLayout.Orientation = VtOrientationUp
.Plot.Axis(VtChAxisIdY).AxisTitle.Text = "sdfasd"
.ColumnCount = 1
.RowCount = 2
If rs.State = 1 Then
rs.Close
End If
Dim id
id = Right(key, Len(key) - 1)
rs.Open "SELECT * FROM project_criterion where criterionID = " & id, conn
.Row = 1
.RowLabel = "计划值"
.Data = Val(rs("planValue"))
.Row = 2
.RowLabel = "实际值"
.Data = Val(rs("factValue"))
'.DataGrid.ColumnLabel(2, 1) = "LLLLLLLLLLLLLLLLLLLLL"
'.DataGrid.RowLabel(2, 1) = "cccccc"
'.Enabled = False
'MsgBox .ActiveSeriesCount '图表系列数(即图例个数)
End With
End Sub
解决方案 »
- 怎么用CreateFont函数创建加粗的字体
- goto
- 鼠标右击时触发左击事件?
- 我VB一个学生信息管理系统有个小错误,你们能帮帮我吗
- 急聘VB程序员若干,工作地点深圳
- 大家来谴责这种有损我们中国程序员脸面的行为呀~
- 高分求解:在程序的form_Unload 中必须写 end 才能结束程序,如何设置可以不用end结束?
- 提个建议:我们大家来搞个扑克大赛好不好?经常看到媒体上有围棋什么的程序比赛,我们也来搞个扑克程序比赛,看谁编的程序最历害,好像蛮好玩的。
- newyon(),多谢!还有120分。
- 请问如何在TabStrip控件的页里加入其他控件
- 开发一个中型企业的医药进、销、存管理系统一般需要多长时间?
- 请问怎么设置activereport的ado的数据源?
Line (10, 0)-(10, 1145), RGB(0, 0, 255), BF