Print or transfer data from form grid using Temporary Table

I have a form with temp data as data source. The temp table is filled from multiple tables and shown to grid. Now i want to transfer the form data to another table once a button is clicked or want to print by transferring data to report. Any ideas will help.

Thanks for your support.

Have you tried passing the temp data table object to the report ?

You can copy the contents of the temp data , to another temp data variable using setTmpData method