mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
change the behavior of WIN32OLE#[] and WIN32OLE#[]=.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6ac8bca0f0
commit
801443f3ac
4 changed files with 156 additions and 32 deletions
|
@ -9,14 +9,14 @@ excel = WIN32OLE.new("excel.application")
|
|||
|
||||
# Create and rotate the chart
|
||||
|
||||
excel['Visible'] = TRUE;
|
||||
excel.visible = TRUE;
|
||||
excel.Workbooks.Add();
|
||||
excel.Range("a1")['Value'] = 3;
|
||||
excel.Range("a2")['Value'] = 2;
|
||||
excel.Range("a3")['Value'] = 1;
|
||||
excel.Range("a1").value = 3;
|
||||
excel.Range("a2").value = 2;
|
||||
excel.Range("a3").value = 1;
|
||||
excel.Range("a1:a3").Select();
|
||||
excelchart = excel.Charts.Add();
|
||||
excelchart['Type'] = ChartTypeVal;
|
||||
excelchart.type = ChartTypeVal;
|
||||
|
||||
i = 30
|
||||
i.step(180, 10) do |rot|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue