~ubuntu-branches/ubuntu/trusty/ruby1.9/trusty

« back to all changes in this revision

Viewing changes to ext/win32ole/sample/excel2.rb

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2006-05-08 22:23:12 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060508222312-w2wqeaz030ifi59j
Tags: 1.9.0+20060423-3ubuntu1
* Resynchronized with Debian.
* Only change from Debian is the addition of
  debian/patches/903_sparc_fix_define.patch to fix illegal instructions
  at runtime on sparc. (change from 1.9.0+20050921-1ubuntu1)

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
# Create and rotate the chart
11
11
 
12
 
excel['Visible'] = TRUE;
 
12
excel.visible = TRUE;
13
13
excel.Workbooks.Add();
14
 
excel.Range("a1")['Value'] = 3;
15
 
excel.Range("a2")['Value'] = 2;
16
 
excel.Range("a3")['Value'] = 1;
 
14
excel.Range("a1").value = 3;
 
15
excel.Range("a2").value = 2;
 
16
excel.Range("a3").value = 1;
17
17
excel.Range("a1:a3").Select();
18
18
excelchart = excel.Charts.Add();
19
 
excelchart['Type'] = ChartTypeVal;
 
19
excelchart.type = ChartTypeVal;
20
20
 
21
21
i = 30
22
22
i.step(180, 10) do |rot|