You can define your own Visual Basic functions directly in the Report Template Editor, and access these functions in your report items.