From: Paulo Oliveira on 9 Mar 2010 13:42 Willie, All my reports are created in Design mode, in my App i use: SetDecimalSep(Asc(".")) SetThousandSep(Asc(",")) But in Reports i must use Portuguese style: SetDecimalSep(Asc(",")) SetThousandSep(Asc(".")) Is any way to make this work? >create a function that you call in the pagesetup What you mean PageSetup? If you have a sample... please help me :) TIA Paulo On Mar 9, 12:20 pm, "Willie Moore" <will...(a)wmconsulting.com> wrote: > Paulo, > > The thing that comes to mind is that using RP2, you are using something > that obeys the VO GUI rules. You can also build dlls to include your own > functions. If the report is not obeying setDecimalSep natively, create a > function that you call in the pagesetup. That function does nothing but > call setdecimalsep and setthousSep with the current windows settings. It > returns nothing. That should quickly get your reports up and running. I > haven't created a custom dll for RP2 but I do it all the time for RP3. I > am out of town for the next 3 days. Let me know if you need a sample and > I will see what I can do. > > Regards, > Willie > > __________ Information from ESET NOD32 Antivirus, version of virus > signature database 4928 (20100309) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com
From: Willie Moore on 10 Mar 2010 10:12 Paulo, I will try to put together a sample. I have not used ReportPro 2 in a while. I know how to do it in RP3 and I think it works the same way. Regards, Willie "Paulo Oliveira" <paulo(a)clipinfor.com> wrote in message news:e81cb10d-70e5-48d7-9532-9bdd8da4d234(a)d27g2000yqf.googlegroups.com: > Willie, > > All my reports are created in Design mode, in my App i use: > SetDecimalSep(Asc(".")) > SetThousandSep(Asc(",")) > > But in Reports i must use Portuguese style: > SetDecimalSep(Asc(",")) > SetThousandSep(Asc(".")) > > Is any way to make this work? > > > > >create a function that you call in the pagesetup > > What you mean PageSetup? > > If you have a sample... please help me :) > > TIA > Paulo > > On Mar 9, 12:20 pm, "Willie Moore" <will...(a)wmconsulting.com> wrote: > > > Paulo, > > > > The thing that comes to mind is that using RP2, you are using something > > that obeys the VO GUI rules. You can also build dlls to include your own > > functions. If the report is not obeying setDecimalSep natively, create a > > function that you call in the pagesetup. That function does nothing but > > call setdecimalsep and setthousSep with the current windows settings. It > > returns nothing. That should quickly get your reports up and running. I > > haven't created a custom dll for RP2 but I do it all the time for RP3. I > > am out of town for the next 3 days. Let me know if you need a sample and > > I will see what I can do. > > > > Regards, > > Willie > > > > __________ Information from ESET NOD32 Antivirus, version of virus > > signature database 4928 (20100309) __________ > > > > The message was checked by ESET NOD32 Antivirus. > > > > http://www.eset.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4931 (20100310) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
From: Willie Moore on 10 Mar 2010 10:45
Paulo, Here is some sample code: Create a new dll. Call it testEFL FUNCTION rpFunctionList AS ARRAY LOCAL aArray AS ARRAY aArray :={} AAdd(aArray, "SetupDate") RETURN aArray FUNCTION setupDate SetThousandSep(".") SetDecimalSep(",") RETURN NIL Create your RPWIN.ini and add this to it [FunctionLibs] LIB1=testEFL.DLL Now in your report, add a dummy field in your page header section. Use the expression builder and select setupDate. It will not do anything except reset your date to the new format. Regards, Willie "Paulo Oliveira" <paulo(a)clipinfor.com> wrote in message news:e81cb10d-70e5-48d7-9532-9bdd8da4d234(a)d27g2000yqf.googlegroups.com: > Willie, > > All my reports are created in Design mode, in my App i use: > SetDecimalSep(Asc(".")) > SetThousandSep(Asc(",")) > > But in Reports i must use Portuguese style: > SetDecimalSep(Asc(",")) > SetThousandSep(Asc(".")) > > Is any way to make this work? > > > > >create a function that you call in the pagesetup > > What you mean PageSetup? > > If you have a sample... please help me :) > > TIA > Paulo > > On Mar 9, 12:20 pm, "Willie Moore" <will...(a)wmconsulting.com> wrote: > > > Paulo, > > > > The thing that comes to mind is that using RP2, you are using something > > that obeys the VO GUI rules. You can also build dlls to include your own > > functions. If the report is not obeying setDecimalSep natively, create a > > function that you call in the pagesetup. That function does nothing but > > call setdecimalsep and setthousSep with the current windows settings. It > > returns nothing. That should quickly get your reports up and running. I > > haven't created a custom dll for RP2 but I do it all the time for RP3. I > > am out of town for the next 3 days. Let me know if you need a sample and > > I will see what I can do. > > > > Regards, > > Willie > > > > __________ Information from ESET NOD32 Antivirus, version of virus > > signature database 4928 (20100309) __________ > > > > The message was checked by ESET NOD32 Antivirus. > > > > http://www.eset.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4931 (20100310) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com |