Sha256: 7a0cabb07cb0b2e452fc33ac99b6919d8ad941c142b9c8cc459280d611050025

Contents?: true

Size: 971 Bytes

Versions: 1

Compression:

Stored size: 971 Bytes

Contents

module Asposetasksjava
  module ProjectSummary
    def initialize()
        # Reading Project Summary Information
        get_project_summary()
    end

    def get_project_summary()
        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 + 'Sample.xml')

        prj = Rjb::import('com.aspose.tasks.Prj')

        puts "Author: " + project.get(prj.AUTHOR).to_s
        puts "Author Last Author: " + project.get(prj.LAST_AUTHOR).to_s
        puts "Revision: " + project.get(prj.REVISION).to_string
        puts "Keywords: " + project.get(prj.KEYWORDS).to_s
        puts "Comments: " + project.get(prj.COMMENTS).to_s

        puts "Creation Date: " + project.get(prj.CREATION_DATE).to_string
        puts "Last Printed: " + project.get(prj.LAST_PRINTED).to_string
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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