Custom Reports, how to append plain text to a data field

Forum Forums SI 2016 Genreal Custom Reports, how to append plain text to a data field

This topic contains 1 reply, has 2 voices, and was last updated by  Narayana Karthik 1 year ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #12892

    Eric Kalpakoff
    Participant

    I am creating a custom report and I want to right justify the fields on the cover page. I’d like to append ‘Revision:’ in front of the dtr:Revision and make sure they don’t overlap, can this be done inside the same field?

    #12893

    Narayana Karthik

    Hi,
    This is doable with the help of script code.
    Assumption –
    I am just assuming you are using latest SI software and your custom report have
    dtr:Revision field textbox name is “txtRevision” and it lies in ReportHeader1 section.

    How to do in script side –
    In the “ReportHeader1_Format” event procedure include the below line –

    Sub ReportHeader1_Format

    txtRevision.Text = string.Format(“Revision {0}”, txtRevision.Text)

    End Sub

    Hope you got it and it helps.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.