Sha256: 19a0c456bf4576814ac485682f9846df86697fe2a5018600f44c25b9269ca87d

Contents?: true

Size: 1.11 KB

Versions: 1

Compression:

Stored size: 1.11 KB

Contents

module Asposetasksjava
  module CurrencySymbols
    def initialize()
    	# Getting Currency Symbol
    	get_currency_symbol()

    	# Getting Currency Symbol
    	set_currency_symbol()
    end

    def get_currency_symbol()
        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')

        puts "Currency Symbol: " + project.get(Rjb::import('com.aspose.tasks.Prj').CURRENCY_SYMBOL).to_string
    end

    def set_currency_symbol()
        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')

        project.set(Rjb::import('com.aspose.tasks.Prj').CURRENCY_SYMBOL, "$$")

        project.save(data_dir + "ProjectCurrSymbols.mpp", Rjb::import('com.aspose.tasks.SaveFileFormat').MPP)

        puts "Set currency symbol."
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asposetasksjava-0.0.1 lib/asposetasksjava/Currencies/currencysymbols.rb