日期:2014-05-20  浏览次数:20729 次

为什么mschart的问题都没人回答。
不好意思。。。积分有限。
第一:
mschart中经常给label赋值#VAL{P}或者#VAL{C}
#VAL{P}是默认Y轴的值,格式为p,P代表的是百分比格式
#VAL{C}是默认Y轴的值,格式为C,P代表的是金额的格式。。
还有别的格式吗?我想要全一点,谢谢。。

第二:
将Mschart生成的图导出为到指定位置的图片

谢谢大家了,拜托了

------解决方案--------------------
mschart人家有案例的嘛,你把iis配置好,把案例下下来,一个一个照着做就行了,要啥效果,就去找对应的案例喽

所以这类的控件很少有人回答
------解决方案--------------------
http://archive.msdn.microsoft.com/mschart

下载去download里找。
------解决方案--------------------
这个问题研究的人不是很多。
------解决方案--------------------
有个C#单机版的 也不错
你找一下吧 网上很多,实例很全~



Public Sub SavePic()
Dim saveFileDialog1 As New SaveFileDialog()

' Sets the current file name filter string, which determines 
' the choices that appear in the "Save as file type" or 
' "Files of type" box in the dialog box.
saveFileDialog1.Filter = "Bitmap (*.bmp)|*.bmp|JPEG (*.jpg)|*.jpg|EMF (*.emf)|*.emf|PNG (*.png)|*.png|SVG (*.svg)|*.svg|GIF (*.gif)|*.gif|TIFF (*.tif)|*.tif"
saveFileDialog1.FilterIndex = 2
saveFileDialog1.RestoreDirectory = True

' Set image file format
If saveFileDialog1.ShowDialog() = DialogResult.OK Then
Dim format As ChartImageFormat = ChartImageFormat.Bmp

If saveFileDialog1.FileName.EndsWith("bmp") Then
format = ChartImageFormat.Bmp
Else
If saveFileDialog1.FileName.EndsWith("jpg") Then
format = ChartImageFormat.Jpeg
Else
If saveFileDialog1.FileName.EndsWith("emf") Then
format = ChartImageFormat.Emf
Else
If saveFileDialog1.FileName.EndsWith("gif") Then
format = ChartImageFormat.Gif
Else
If saveFileDialog1.FileName.EndsWith("png") Then
format = ChartImageFormat.Png
Else
If saveFileDialog1.FileName.EndsWith("tif") Then
format = ChartImageFormat.Tiff
End If
End If ' Save image
End If
End If
End If
End If

IsMouseMove = False

VChart.ChartAreas(0).CursorX.IsUserEnabled = False
VChart.ChartAreas(0).CursorX.LineDashStyle = ChartDashStyle.NotSet
If VChart.Annotations.IndexOf("游标") >= 0 Then
'X 定位
VChart.Annotations("游标").Visible = False
End If

VChart.SaveImage(saveFileDialog1.FileName, format)

VChart.ChartAreas(0).CursorX.LineDashStyle = ChartDashStyle.Solid
End If


End Sub