Sha256: 0a0525eb48f81c71b8d6dcdc1e98a6ae7dbbc9354699824cec86154b5c04f034

Contents?: true

Size: 562 Bytes

Versions: 1

Compression:

Stored size: 562 Bytes

Contents

module Asposetasksjava
  module SaveProjectDataToExcel
    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')

        # Save the Project as XLSX
        project.save(data_dir + "Project.XLSX", Rjb::import('com.aspose.tasks.SaveFileFormat').XLSX)

        puts "Saved project data to Excel, please check the output file"

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asposetasksjava-0.0.1 lib/asposetasksjava/Projects/saveprojectdatatoexcel.rb