How to print the current user as Prepared By in your DevExpress report?

Most report requires a Prepared By notation at the Page Footer to signify who prepared the report.  Furthermore, the Prepared By notation requires the current user to be the default value.  To do this you need to follow the step below:

1. Add a public property in the application class, a class use to contain global variables used by the client.

Please refer to this blog for detailed information on client global variables.

2. Modify your report to add a parameter.

b1

3. Upon opening of the report, modify the model parameters to include the PreparedBy parameter you’ve just created in step number 2, then equate this parameter to the public property of the application class.

b2

Thats it.

If you find this blog helpful, you can make the donation by clicking the Paypal button below.

Advertisements
About

Software developer living in the Philippines.

Posted in Lightswitch

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Author

Harold Glenn P. Minerva
Software Developer / Tech Enthusiast
Living in the Philippines

View Harold Glenn Minerva's profile on LinkedIn

Instagram

Software Engineer - Seasonal and Range Trading Software. Magenta Trader is a powerful stock market visualization software that increases your probability of trading success.

Software Architect and Founder - Easyfis.com is a multi-tenant cloud-based Software-as-a-Service (SaaS) business app that caters to micro, small and medium trading businesses.

CTO and Co-Founder - We give your company the leverage by providing innovative software solutions products such as Point-of-Sales (POS), Financial Information System (FMIS), Payroll and DTR (HRIS), and many more.

%d bloggers like this: