lenasi Posted May 11, 2004 Report Share Posted May 11, 2004 Amigos, Não estou conseguindo alinhar na impressão, os campos de números com três casas decimais. Exemplo: _5,000 (coloquei o traço, senão este tópico não ficaria alinhado) 15,000 25,000 O exemplo acimas, é como gostaria que fosse impresso. Mas, não, está saindo como estivesse centralizado. Estou usando o TRANSF(). Existe outro parecido? Veja o comando abaixo: oPrn:Say( nRow, 46*fntArial:nWidth, TRANSF(CADMOV-f_ODoMetr,"@R 9999,999"),fntArial) oPrn:Say( nRow, 73*fntArial:nWidth, TRANSF(CADMOV-F_OdRetir, "@R 9999,999"),fntArial) oPrn:Say( nRow, 90*fntArial:nWidth, TRANSF(CADMOV->F_KmRodado, "@R 9999,999"),fntArial) Grato Quote Link to comment Share on other sites More sharing options...
vagner Posted May 11, 2004 Report Share Posted May 11, 2004 Olá Lenasi, esse tópico já foi informado antes , mas aqui vai. citação:Amigos, Não estou conseguindo alinhar na impressão, os campos de números com três casas decimais. Exemplo: _5,000 (coloquei o traço, senão este tópico não ficaria alinhado) 15,000 25,000 O exemplo acimas, é como gostaria que fosse impresso. Mas, não, está saindo como estivesse centralizado. Estou usando o TRANSF(). Existe outro parecido? Veja o comando abaixo: oPrn:Say( nRow, 46*fntArial:nWidth, TRANSF(CADMOV-f_ODoMetr,"@R 9999,999"),fntArial) oPrn:Say( nRow, 73*fntArial:nWidth, TRANSF(CADMOV-F_OdRetir, "@R 9999,999"),fntArial) oPrn:Say( nRow, 90*fntArial:nWidth, TRANSF(CADMOV->F_KmRodado, "@R 9999,999"),fntArial) Grato id=quote>id=quote>:Say( , , , , , , , ) o nPad, é onde têm que mudar : #define PAD_LEFT 0 #define PAD_RIGHT 1 #define PAD_CENTER 2 No seu caso ficaria assim : oPrn:Say( nRow, 90*fntArial:nWidth, TRANSF(CADMOV->F_KmRodado, "@R 9999,999"),fntArial,50, , , 2 ou PAD_RIGHT) Ps: Teria q informar o tamanho também tipo uns 50 dependendo da sua listagem Abraços Vagner Wirts São Paulo-Brasil Quote Link to comment Share on other sites More sharing options...
lenasi Posted May 12, 2004 Author Report Share Posted May 12, 2004 Muito Obrigado. Valeu!!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.