asposecellsjava 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,21 @@
1
+ module Asposecellsjava
2
+ module SplitPanes
3
+ def initialize()
4
+ data_dir = File.dirname(File.dirname(File.dirname(__FILE__))) + '/data/'
5
+
6
+ # Instantiating a Workbook object by excel file path
7
+ workbook = Rjb::import('com.aspose.cells.Workbook').new(data_dir + 'Book1.xls')
8
+
9
+ # Set the active cell
10
+ workbook.getWorksheets().get(0).setActiveCell("A20")
11
+
12
+ # Split the worksheet window
13
+ workbook.getWorksheets().get(0).split()
14
+
15
+ # Saving the modified Excel file in default (that is Excel 2003) format
16
+ workbook.save(data_dir + "SplitPanes output.xls")
17
+
18
+ puts "Panes split successfully."
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,3 @@
1
+ module Asposecellsjava
2
+ VERSION = '0.0.1'
3
+ end
@@ -0,0 +1,22 @@
1
+ module Asposecellsjava
2
+ module ZoomFactor
3
+ def initialize()
4
+ data_dir = File.dirname(File.dirname(File.dirname(__FILE__))) + '/data/'
5
+
6
+ # Instantiating a Workbook object by excel file path
7
+ workbook = Rjb::import('com.aspose.cells.Workbook').new(data_dir + 'Book1.xls')
8
+
9
+ # Accessing the first worksheet in the Excel file
10
+ worksheets = workbook.getWorksheets()
11
+ worksheet = worksheets.get(0)
12
+
13
+ # Setting the zoom factor of the worksheet to 75
14
+ worksheet.setZoom(75)
15
+
16
+ # Saving the modified Excel file in default (that is Excel 2003) format
17
+ workbook.save(data_dir + "output.xls")
18
+
19
+ puts "Set zoom factor, please check the output file."
20
+ end
21
+ end
22
+ end
data/samples/test.rb ADDED
@@ -0,0 +1,8 @@
1
+ require '../lib/asposecellsjava'
2
+ include Asposecellsjava
3
+ include Asposecellsjava::HideUnhideWorksheet
4
+
5
+ initialize_aspose_cells
6
+
7
+
8
+
metadata ADDED
@@ -0,0 +1,131 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: asposecellsjava
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Aspose Marketplace
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-07-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.7'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rjb
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 1.5.2
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 1.5.2
69
+ description: AsposeCellsJava is a Ruby gem that can help working with Aspose.Cells
70
+ libraries
71
+ email:
72
+ - marketplace@aspose.com
73
+ executables: []
74
+ extensions: []
75
+ extra_rdoc_files: []
76
+ files:
77
+ - Gemfile
78
+ - LICENSE
79
+ - README.md
80
+ - Rakefile
81
+ - asposecellsjava.gemspec
82
+ - config/aspose.yml
83
+ - data/Book1.xls
84
+ - data/index.html
85
+ - lib/asposecellsjava.rb
86
+ - lib/asposecellsjava/asposecells.rb
87
+ - lib/asposecellsjava/converter.rb
88
+ - lib/asposecellsjava/copyworksheets.rb
89
+ - lib/asposecellsjava/displayhidegridlines.rb
90
+ - lib/asposecellsjava/displayhiderowcolumnheaders.rb
91
+ - lib/asposecellsjava/displayhidescrollbars.rb
92
+ - lib/asposecellsjava/displayhidetabs.rb
93
+ - lib/asposecellsjava/document.rb
94
+ - lib/asposecellsjava/encrypt.rb
95
+ - lib/asposecellsjava/freezepanes.rb
96
+ - lib/asposecellsjava/hideunhideworksheet.rb
97
+ - lib/asposecellsjava/managingworksheets.rb
98
+ - lib/asposecellsjava/pagebreakpreview.rb
99
+ - lib/asposecellsjava/pagebreaks.rb
100
+ - lib/asposecellsjava/pagesetup.rb
101
+ - lib/asposecellsjava/protection.rb
102
+ - lib/asposecellsjava/rowsandcolumns.rb
103
+ - lib/asposecellsjava/splitpanes.rb
104
+ - lib/asposecellsjava/version.rb
105
+ - lib/asposecellsjava/zoomfactor.rb
106
+ - samples/test.rb
107
+ homepage: https://github.com/asposecells/Aspose_Cells_Java/tree/master/Plugins/Aspose_Cells_Java_for_Ruby
108
+ licenses:
109
+ - MIT
110
+ metadata: {}
111
+ post_install_message:
112
+ rdoc_options: []
113
+ require_paths:
114
+ - lib
115
+ required_ruby_version: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ version: '0'
120
+ required_rubygems_version: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ requirements: []
126
+ rubyforge_project:
127
+ rubygems_version: 2.4.5
128
+ signing_key:
129
+ specification_version: 4
130
+ summary: A Ruby gem to work with aspose.cells libraries
131
+ test_files: []