how to write html for making a custom table in print designer app of frappe

Actually I was trying to make a table from a dictionary which is written in my back-end ERPNext code within before_print function . basically I’m enable to write html for the custom table . please can anyone guide me how can I write html in frappe print_designer app or where i have to write html