C # – Doubt for not calling the function

good night, I use acbrframework to read the weight of the scale and FAST REPORT to print a command I use a button to call the function until ok ok but I would call the function alone without the customer needing to press the button read and print the command