Topic: How to print the Current login Username on Report ?

Hello,

I'm trying print the login username on printed paper it's should print who the user print it
When I trying use

Application.User.Username

But this code it's not supported by FastReport

Any idea how to print the current login user  on the paper ?

Life is like a school;
One can learn and graduate or stay behind.

Re: How to print the Current login Username on Report ?

Hi FMR,
It's not strictly the correct way to do it ( big_smile ) but if you just want something that is quick and easy then have a look at the attachment.
Just add an empty field to your lead table and add the user name immediately prior to running your report.  Then when you close the report, remove the user name.
Valid sigin-in details are admin / admin, FMR / password, Derek / password;
Derek.

Post's attachments

Attachment icon report authorisor.zip 444.07 kb, 45 downloads since 2023-12-14 

Re: How to print the Current login Username on Report ?

derek, you are great as always !
cool trick to solve the problem cool

Life is like a school;
One can learn and graduate or stay behind.