asposecellsjava 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/jars/aspose-cells-8.4.2.jar +0 -0
- data/lib/asposecellsjava/asposecells.rb +1 -0
- data/lib/asposecellsjava/helloworld.rb +27 -0
- data/lib/asposecellsjava/version.rb +1 -1
- data/samples/test.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5d79bb944cf1936d222e7dc26437ecf9fc77a59
|
4
|
+
data.tar.gz: d7ac828b2f5f40dfa260a7b1bfd6cd9c07cabf39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 074c39a019c01e0b59af99a5ea9a38fb4d8caec43c0d757483669cdd62b4247f4fcc910946aeb9211c0f5d4ed28f574d6d51c827d6db837378ec76743458a3e7
|
7
|
+
data.tar.gz: 6872aa35c4b5757f1ff9bae5211b800f91b302434b74c692f9f33774760a83eb4669c75a301c125d2ae6778ee7662b97230fe7a35be796acd0179bc7740408c1
|
data/README.md
CHANGED
@@ -23,14 +23,14 @@ http://www.aspose.com/community/files/72/java-components/aspose.cells-for-java/
|
|
23
23
|
|
24
24
|
For most complete documentation of the project, check Aspose.Cells Java for Ruby confluence wiki link:
|
25
25
|
|
26
|
-
http://www.aspose.com/docs/display/
|
26
|
+
http://www.aspose.com/docs/display/cellsjava/4.+Aspose.Cells+Java+For+Ruby
|
27
27
|
|
28
28
|
## Usage
|
29
29
|
|
30
30
|
```ruby
|
31
|
-
require '
|
31
|
+
require require File.dirname(File.dirname(File.dirname(__FILE__))) + '/lib/asposecellsjava'
|
32
32
|
include Asposecellsjava
|
33
|
-
include Asposecellsjava::
|
33
|
+
include Asposecellsjava::HelloWorld
|
34
34
|
initialize_aspose_cells
|
35
35
|
```
|
36
36
|
Lets understand the above code
|
Binary file
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module Asposecellsjava
|
2
|
+
module HelloWorld
|
3
|
+
def initialize()
|
4
|
+
data_dir = File.dirname(File.dirname(File.dirname(__FILE__))) + '/data/'
|
5
|
+
|
6
|
+
# Instantiating a Workbook object that represents a Microsoft Excel file.
|
7
|
+
workbook = Rjb::import('com.aspose.cells.Workbook').new
|
8
|
+
|
9
|
+
# Note when you create a new workbook, a default worksheet,
|
10
|
+
# "Sheet1", is by default added to the workbook.
|
11
|
+
# Accessing the first worksheet in the book ("Sheet1").
|
12
|
+
sheet = workbook.getWorksheets().get(0)
|
13
|
+
|
14
|
+
# Access cell "A1" in the sheet.
|
15
|
+
cell = sheet.getCells().get("A1")
|
16
|
+
|
17
|
+
# Input the "Hello World!" text into the "A1" cell
|
18
|
+
cell.setValue("Hello World!")
|
19
|
+
|
20
|
+
# Saving the modified Excel file in default (that is Excel 2003) format
|
21
|
+
file_format_type = Rjb::import('com.aspose.cells.FileFormatType')
|
22
|
+
workbook.save(data_dir + "HelloWorld.xls", file_format_type.EXCEL_97_TO_2003)
|
23
|
+
|
24
|
+
puts "Document has been saved, please check the output file."
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
data/samples/test.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asposecellsjava
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aspose Marketplace
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -82,6 +82,7 @@ files:
|
|
82
82
|
- config/aspose.yml
|
83
83
|
- data/Book1.xls
|
84
84
|
- data/index.html
|
85
|
+
- jars/aspose-cells-8.4.2.jar
|
85
86
|
- lib/asposecellsjava.rb
|
86
87
|
- lib/asposecellsjava/asposecells.rb
|
87
88
|
- lib/asposecellsjava/converter.rb
|
@@ -93,6 +94,7 @@ files:
|
|
93
94
|
- lib/asposecellsjava/document.rb
|
94
95
|
- lib/asposecellsjava/encrypt.rb
|
95
96
|
- lib/asposecellsjava/freezepanes.rb
|
97
|
+
- lib/asposecellsjava/helloworld.rb
|
96
98
|
- lib/asposecellsjava/hideunhideworksheet.rb
|
97
99
|
- lib/asposecellsjava/managingworksheets.rb
|
98
100
|
- lib/asposecellsjava/pagebreakpreview.rb
|