Create reports for thermal printers (receipt size)

Is there any guide for creating reports at the size of reciepts (80mm) for thermal printers?