Olá, boa tarde a todos!
Estou com uma dúvida relacionado ao TRBreak, gostaria de exibir o texto "total" ao lado do valor, conforme apresentado em anexo. Obrigado a todos.
Segue o código abaixo:
TRCell():New(oSection1,"E2_NUM" ,"_cAlias1","N.Titulo",,25) TRCell():New(oSection1,"E2_NOMFOR" ,"_cAlias1","N.Fornecedor",,15) TRCell():New(oSection1,"E2_EMISSAO" ,"_cAlias1","Dt. Emissao",,20) TRCell():New(oSection1,"E2_BAIXA" ,"_cAlias1","Dt. Baixa",,20) TRCell():New(oSection1,"E2_HIST" ,"_cAlias1","Histórico",,15) TRCell():New(oSection1,"EV_VALOR" ,"_cAlias1","Valor",,20) TRCell():New(oSection1,"E2_IRRF" ,"_cAlias1","IRRF.",,15) TRCell():New(oSection1,"E2_PIS" ,"_cAlias1","PIS",,15) TRCell():New(oSection1,"E2_COFINS" ,"_cAlias1","COFINS",,15) TRCell():New(oSection1,"E2_ISS" ,"_cAlias1","ISS",,15) //TRCell():New(oSection1,"Valor Pago" ,"_cAlias1","Valor Pago") //Total pago TRCell():New(oSection1,"F1_XPAIS" ,"_cAlias1","Pais",,30) // Cód Pais //TRCell():New(oSection1,"DESC_PAIS" ,"_cAlias1","Descr Pais") // Descr Pais TRCell():New(oSection1,"DESC_OPER_NAT" ,"_cAlias1","Cód Natureza",,45) //Cod Naturez
oBreak := TRBreak():New(oSection1,oSection1:Cell("E2_NOMFOR"),,.F.) oSection1:SetHeaderBreak(.T.) TRFunction():New(oSection1:Cell("EV_VALOR"),"","SUM",oBreak,"TOTAL GERAL","@E 999,999,999,999.99",,.F.,.F.) TRFunction():New(oSection1:Cell("E2_IRRF"),"","SUM",oBreak,"TOTAL","@E 999,999,999,999.99",,.F.,.F.) TRFunction():New(oSection1:Cell("E2_PIS") ,"","SUM",oBreak,"TOTAL","@E 999,999,999,999.99",,.F.,.F.) TRFunction():New(oSection1:Cell("E2_COFINS"),"","SUM",oBreak,"TOTAL","@E 999,999,999,999.99",,.F.,.F.) TRFunction():New(oSection1:Cell("E2_ISS"),"","SUM",oBreak,"TOTAL","@E 999,999,999,999.99",,.F.,.F.)