Managing Currency Symbols in Ruby
Contents
[
Hide
Show
]Aspose.Tasks - Getting Currency Symbols
To get Currency Symbols using Aspose.Tasks Java for Ruby, call get_currency_symbol method of CurrencySymbols module. Here you can see example code.
1project = Rjb::import('com.aspose.tasks.Project').new('test_tasks.mpp')
2puts "Currency Symbol: " + project.get(Rjb::import('com.aspose.tasks.Prj').CURRENCY_SYMBOL).to_string
Aspose.Tasks - Setting Currency Symbols
To set currency symbols using Aspose.Tasks Java for Ruby, call set_currency_symbol method of CurrencySymbols module. Here you can see example code.
1project = Rjb::import('com.aspose.tasks.Project').new('test_tasks.mpp')
2project.set(Rjb::import('com.aspose.tasks.Prj').CURRENCY_SYMBOL, "$$")
3project.save("ProjectCurrencySymbols.mpp", Rjb::import('com.aspose.tasks.SaveFileFormat').MPP)
4puts "Set currency symbol."
Download Running Code
Download Managing Currency Symbols (Aspose.Tasks) from any of the below mentioned social coding sites: