I am creating a report that is basically a business letter. I load the body of the letter from a database. It is text with embedded variables, like the client’s name and address. I currently have this working where I replace the variables in the body with the corresponding data in a class, but I thought it would be nice to let the report generator do that for me.
So I would like to have the body use the same expressions as the reports do. So a body might look like this: “This is the body of the letter Mr. {Fields.Lastname}.” Of course, I don’t know what the body actually is until the user runs the report.
So I would need to access the textbox that the body would appear in, set it’s value to the body text, programmatically setup a datasource with the data to be used to evaluate the expressions, the somehow data bind it so the expressions in the body are evaluated against the new data source.
Is this possible and if so are there some examples or documentation that would help?
So I would like to have the body use the same expressions as the reports do. So a body might look like this: “This is the body of the letter Mr. {Fields.Lastname}.” Of course, I don’t know what the body actually is until the user runs the report.
So I would need to access the textbox that the body would appear in, set it’s value to the body text, programmatically setup a datasource with the data to be used to evaluate the expressions, the somehow data bind it so the expressions in the body are evaluated against the new data source.
Is this possible and if so are there some examples or documentation that would help?