local oRS as rsEngine oRS = GetRsObject() with oRS .lAutoPageHeader=.f. .lAutoPageFooter=.f. .rsPageFormat='A4' &&Also Available A3 , LETTER .rsPageOrientation='LANDSCAPE' .OpenSession() .DrawBox( .nTop , 25 , .nTop + 740, 1100 , 3, rgb(255,128,128) ) .lf(12) .lw(10, '123456','Book Antiqua',275,1, rgb(255,0,128) ) .CloseSession() endwith oRS.output(1) **Or *cTifFile=oRS.output( 4 , .t. ) &&TIF with Preview via default app *cPdfFile=oRS.output( 5 , .t. ) &&PDF with Preview via default appDownload RS Demo project, then try above code.