Join paramter with hardcoded string

Posted by: renu.ap on 7 May 2018, 9:38 am EST

    • Post Options:
    • Link

    Posted 7 May 2018, 9:38 am EST

    hi,

    Is it possible to concatenate string with parameter like below ?

    “Dear " + param:pNameTitle + " :”

  • Posted 8 May 2018, 2:22 am EST

    You can do this in the Detail (or whichever section the TextBox is placed) section’s format event as below:

    public void Detail_Format()
    {
    	this.TextBox1.Text = "Dear " + rpt.Parameters["Parameter1"].Value + ":";
    }
    
  • Posted 8 May 2018, 6:48 am EST

    :slight_smile: I need without code. It should be like sql datasource field name in field expressions. any ideas ?

  • Posted 9 May 2018, 5:14 am EST

    Unfortunately, it is not possible to concatenate text and Parameter using expressions in a SectionReport. The code I gave earlier goes on the script tab of the report. I’ve attached the report for your reference as well. Kindly take a look.

    Parameter.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels