Sha256: fc8d486bfc014819b96a02b217de4000544c5b43f1798adaa249c6add0246ce0
Contents?: true
Size: 991 Bytes
Versions: 1
Compression:
Stored size: 991 Bytes
Contents
module Asposetasksjava module ReadingTableData def initialize() data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/' # Instantiate project object project = Rjb::import('com.aspose.tasks.Project').new(data_dir + 'test_tasks.mpp') t1 = project.getTables().toList().get(0) puts "Table Fields Count" + t1.getTableFields().size().to_s f = t1.getTableFields().get(0) puts "Field width: " + f.getWidth().to_s puts "Field Title: " + f.getTitle().to_s puts "Field Title Alignment: " + f.getAlignTitle().to_s puts "Field Align Data: " + f.getAlignData().to_s f = t1.getTableFields().get(1) puts "Field width: " + f.getWidth().to_s puts "Field Title: " + f.getTitle().to_s puts "Field Title Alignment: " + f.getAlignTitle().to_s puts "Field Align Data: " + f.getAlignData().to_s end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
asposetasksjava-0.0.1 | lib/asposetasksjava/Projects/readingtabledata.rb |