hanhao_0=1
OLEAPP=CREATEOBJECT('Excel.Application')
OLEAPP.Workbooks.Add
OLEAPP.ActiveSheet.PageSetup.Papersize=9
OLEAPP.ActiveSheet.PageSetup.PrintGridlines=.T.
ff='1'
DO WHILE VAL(ff)<>21
OLEAPP.ActiveSheet.Columns(&ff).ColumnWidth=3.8
ff=ALLTRIM(STR(VAL(ff)+1,10,0))
ENDDO
DO WHILE hanhao_0<>41
oleApp.Cells(hanhao_0,20).Value=' '
IF MOD(hanhao_0,2)=0
c='A'+alltrim(str(hanhao_0))
d='T'+alltrim(str(hanhao_0))
OLEAPP.activesheet.range('&c:&d').mergecells=.t.
ENDIF
IF MOD(hanhao_0,2)=1
OLEAPP.cells.Rows(hanhao_0).RowHeight=28
ELSE
OLEAPP.cells.Rows(hanhao_0).RowHeight=6
ENDIF
hanhao_0=hanhao_0+1
ENDDO
OLEAPP.ActiveWorkbook.saved=.T.
OLEAPP.Visible=.T.