I need to know if it is possible to take a global variable in VB.Net and place it into a CR 9 report. I am needing the name of the person currently logged onto the app and place it in a letter.
Create a formula in the report named UserName and put "" (two double quotes) as its text. Place the formula field where you want it on the report. Before sending the report to the Viewer (or printer), set the formula text like this:
[tt]
YrRptObject.DataDefinition.FormulaFields.Item("UserName").Text = "'" & gstrUserName & "'"
[/tt]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.