国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > .NET > 正文

Office XP charting Examples in asp.net

2024-07-10 12:58:22
字體:
供稿:網(wǎng)友

imports owc.stimgraph.helper

  

private sub page_load(byval sender as system.object, byval e as system.eventargs) handles mybase.load


             'create chartspace/chart

dim ochartspace as new owc10.chartspace()

dim ochart as owc10.chchart

dim oseries as owc10.chseries

  

'get a newly created chart from the chartspace

ochart = ochartspace.charts.add

  

'get a newly created series from the chart

oseries = ochart.seriescollection.add

  

'set the title

ochart.hastitle = true

ochart.title.caption = "dot net charting"

  

'demo hard coded

dim avalues() as double = {1, 2, 4, 8, 16}

dim acat() as string = {"a", "b", "c", "d", "e"}

  

'setup the text on the bottom axis

call ochart.setdata(owc10.chartdimensionsenum.chdimcategories, -1, getchartsafearray(acat))

  

'add the data to the series

call oseries.setdata(owc10.chartdimensionsenum.chdimvalues, -1, getchartsafearray(avalues))

  

'*******************************************************************************

'*** output the chart

'*******************************************************************************

'erase any garbage from response

response.buffer = true

response.clear()

  

'tell browser to expect a gif

response.contenttype = "image/gif"

  

'send the gif binary data

response.binarywrite(ochartspace.getpicture("gif", 300, 300))

  

'stop

response.end()

end sub

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 新余市| 余干县| 新安县| 嘉善县| 平武县| 汉源县| 兖州市| 呼图壁县| 原平市| 清流县| 商丘市| 阿克苏市| 买车| 内江市| 云安县| 兴化市| 思茅市| 涡阳县| 邮箱| 蓬安县| 鞍山市| 诸暨市| 陵水| 文化| 富蕴县| 巴彦淖尔市| 瑞金市| 通河县| 张家港市| 马龙县| 湖口县| 黑龙江省| 桓台县| 新民市| 汝南县| 广西| 龙州县| 香格里拉县| 武穴市| 定州市| 长海县|