Do you use APR (Automatic Print Routing)? That will do exactly what you’re trying to do whenever you print the given report using the report style with APR setup. We use that for things like invoices, acknowledgements, and POs. You could just call that report and report style in your button click event and it would do whatever you setup in the print routing (email to customer).