Add the option to print to a page

I made a report of the page “Get Receipt Lines” (Purchase invoice → Line → Functions - Get Receipt Lines). The report appears if I put your name in the Business Central search engine, but I would like to add the option “Print” to the page “Get Receipt Lines”, so that the report is generated right there, only with the lines corresponding to each Purchase Invoice . How can I do this?