Olá!
mas nao tem conteudo,
Só vai funcionar da forma que está querendo se usar a classe winprn.
Pedaço de código para dar uma noção.
oPrn := win_prn():New(rtrim(aPrn[oPrint]))
oPrn :LandScape := .F.
oPrn :FormType := FORM_A4
oPrn :Copies := 1
If !oPrn:Create()
hwg_Msginfo("Não foi criado documento")
Return Nil
Else
If !oPrn:startDoc("Imprimindo Livros de Entradas")
hwg_Msginfo("Erro na Impressora")
Return Nil
Else
CabLivroEntradasII()
... etc e tals...
return .t.
***************************
Function CabLivroEntradasII
***************************
*
*
oPagina:refresh()
oPrn:SetPrc(4,0)
// oPrn:CharSet(0)
// oPrn:Bold(0)
oprn:SetFont('Lucida Console',10,{-3,60})
oprn:Textout(padc('LIVRO REGISTRO DE ENTRADAS - RE - MODELO P1/A',130),.t.)
//oPrn:SetFont('Lucida Console',7,0)
oPrn:SetFont( "Lucida Console", 8, { 3, -50 } )
linha :='|'+replicate('-',129)+'|'
oprn:Textout(linha,.t.)
oprn:Textout('| R E G I S T R O D E E N T R A D A S | (a) CODIGO DE VALORES FISCAIS |',.t.)
oprn:Textout('| |---------------------------------|',.t.)
oprn:Textout('| Firma: '+em->empresa +space(27) + '| 1 - OPERACOES COM CREDITO DO |',.t.)
oprn:Textout('| | IMPOSTO |',.t.)
oprn:Textout('| Insc.Est.: '+em->i_e +space(13)+ 'CNPJ: '+ em->cgc +space(36) + '| 2 - OPER. SEM CREDITO DO IMPOSTO|',.t.)
oprn:Textout('| | ISENTAS OU NAO TRIBUTADAS |',.t.)
oprn:Textout('| Folha: '+ zero_esq(nPagina,4)+spac(27)+'MES OU PERIODO/ANO: '+ pad(mes(nMes)+'/'+cAno,36)+ '| 3 - OPER. SEM CREDITO DO IMPOSTO|',.t.)
oprn:Textout('| | OUTRAS |',.t.)
oprn:Textout('+--------+---------------------------------------------+-------------+----------+---------------------------------+---------------+',.t.)
oprn:Textout('| | DOCUMENTOS FISCAIS | | VALORES FISCAIS | |',.t.)
oprn:Textout('|DATA DE +---+---+---------+--------+--------------+---+ +----+----+---+------------------------------+ |',.t.)
oprn:Textout('| |ES-|SE-| |DATA DO | CODIGO |UF | VALOR | | | | BASE | | IMPOSTO | |',.t.)
oprn:Textout('| | |RIE| | | | | | |ICMS|COD| DE CALCULO | ALI-| | OBSERVACOES |',.t.)
oprn:Textout('| |PE-|SUB| NUMERO | | |ORI| CONTABIL |CFOP| | | OU |QUOTA| CREDITADO | |',.t.)
oprn:Textout('|ENTRADA | |SE-| |DOCUMEN-| EMITENTE |GEM| | |IPI |(A)| VALOR DA | | | |',.t.)
oprn:Textout('| |CIE|RIE| |TO | | | | | | | OPERACAO | | | |',.t.)
oprn:Textout('+--------+---+---+---------+--------+--------------+---+-------------+----+----+---+------------+-----+-----------+---------------+',.t.)
Aqui no forum tem diversos exemplos, procura ai...
Saudações,
Itamar M. Lins Jr.