usando o codigo abaixo:
COLUMN TITLE "ATACADO";
DATA Prod->Pfa_Prod;
PICTURE "@E 999,999.99";
SIZE 08;
FONT 1
preview exibe:
=> 16,00 corretoexcel exibe:
=> 16,099 nao corretocomo solucionar?
grato
=> 16,00 correto
=> 16,099 nao corretoPICTURE "@E 999999.99";
case 'N'
:NumberFormat := "##0"
:HorizontalAlignment := xlRight
if "." $ cPic
:NumberFormat += SubStr( cPic, At( ".", cPic ) )
endif
if "," $ cPic
:NumberFormat := "#," + :NumberFormat
endif
exit case 'N'
:NumberFormat := "##0"
:HorizontalAlignment := xlRight
if "." $ cPic
:NumberFormat += ( "," + Replicate( '0', Len( AfterAtNum( '.', cPic ) ) ) )
endif
if "," $ cPic
:NumberFormat := "#." + :NumberFormat
endif
exitperfect
thanks
Thanks for your feedback. This is very useful to us.
I request you to make this correction in your copy of report.prg till we make general modification.
Wish to get feedback from users of other language installations of Excel.
nageswaragunupudi
brother, If I ADD the TOTAL return 1 error
COLUMN TITLE "VLR.NF";
DATA Nota->Val_Nota;
PICTURE "@E 9,999,999.99";
SIZE 09;
FONT 2;
TOTAL <============= RETURN ERRO IN EXCEL =========> error 9003: Too many recursive
For totals we use the forumla
=SUBTOTAL( 9, <range> ) and <range> with syntax "A2:A5" for English installation of Excel.
I understand that your Excel Installation is Portugese (Brazil ). I read from documentation that the syntax for
Portugese (Poland) is "=SUBTOTAL( 9; A2:A5 )"
Portugese (Brazil) is "=SUBTOTAL( 9, A2:A5 )" // Same as English.
I thought the default English Syntax should work for you.
Please help by doing this test.
Open a blank Excel sheet. Enter some numbers in cells A2, A3, A4 and A5
In Cell A6 please enter the forumla "=SUBOTAL( 9, A2:A5 )"
Does it work or do you get error. If you get error, please find what is the correct syntax to enter.
We need your help and cooperation to implement your language in excel export.
nageswaragunupudi
results:
=SUBTOTAL(9;A2:A5) <= ok
=SUBTOTAL(9,A2:A5) <= erro
local cSubTot := "=SUBTOTAL(9," local cSubTot := "=SUBTOTAL(9;"function XlangID()
local oExcel, nLangID
oExcel := ExcelObj()
nLangID := oExcel:LanguageSettings:LanguageID( 2 )
? nLangID
return nLangIDXlangID() = 1046

