VB 版 (精华区)

发信人: student (earth), 信区: VB
标  题: mschart中的title问题解决
发信站: 哈工大紫丁香 (2001年06月15日18:33:23 星期五), 站内信件

:在mschart控件中,的title,如果你的标题全部都是汉字或者英文,那么title的尺寸
可以自动添加,如果加入其他的东西,例如日期型,字符串变量等,title会在超过36个
字符后隐藏最后3-6个字符。要用鼠标手动扩展title才行。解决办法,在后面加几个空
格字符。不知道谁又更好的办法。而footnote就没有这种现象。
另外,如果想在bar上加数值标志,只需下面语句:
.Plot.SeriesCollection(1).DataPoints.Item(-1).DataPointLabel.LocationType = 
VtChLabelLocationTypeAbovePoint
想打印图表横向,满页,可用下面语句:
Printer.Orientation = 2
    day_chart.EditCopy
     Printer.Print " "
     Printer.PaintPicture Clipboard.GetData(), 0, 0, Printer.Width - 1, Prin
ter.Height - 1
     Printer.EndDoc
     Printer.Orientation = 1
     Printer.Zoom = 100
可以把打印机设为fax printer可以利用fax功能直接发送图表去异地

--
※ 来源:·哈工大紫丁香 bbs.hit.edu.cn·[FROM: 202.118.170.186]
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:2.782毫秒