|
From: Everton L. B. <ev...@fa...> - 2005-07-15 19:14:18
|
Hi,
when I use locale pt_BR my report are showing wrong margins.
The decimal separator in pt_BR is "," (comma)
My PHP:
setlocale(LC_NUMERIC, "pt_BR");
@dl("rlib.so") or die("Gerador de relat=F3rios n=E3o instalado!");
$rlib =3D rlib_init() or die(_("Gerador de relat=F3rios n=E3o inicializad=
o!"));
...
My XML:
<Report fontSize=3D"10"
orientation=3D"portrait"
paperType=3D"'A4'"
leftMargin=3D"0.75"
topMargin=3D"0.40">
...
I tried use "0,75" and "0,40" but report shows nothing.
Thanks,
--=20
Everton Lu=EDs Berz
N=FAcleo de Sistemas Administrativos :: FACCAT - Faculdades de Taquara
+55 51 541 6600 - R.647
ICQ 7807919
|
|
From: Bob D. <bd...@si...> - 2005-07-15 19:56:45
|
Use
rlib_set_locale($rlib, "pt_BR");
instead of setlocale
- bob
On Fri, 2005-07-15 at 16:12 -0300, Everton Luis Berz wrote:
> Hi,
> when I use locale pt_BR my report are showing wrong margins.
> The decimal separator in pt_BR is "," (comma)
>=20
> My PHP:
> setlocale(LC_NUMERIC, "pt_BR");
> @dl("rlib.so") or die("Gerador de relat=C3=B3rios n=C3=A3o instalado!")=
;
> $rlib =3D rlib_init() or die(_("Gerador de relat=C3=B3rios n=C3=A3o ini=
cializado!"));
> ...
>=20
> My XML:
> <Report fontSize=3D"10"
> orientation=3D"portrait"
> paperType=3D"'A4'"
> leftMargin=3D"0.75"
> topMargin=3D"0.40">
> ...
>=20
>=20
> I tried use "0,75" and "0,40" but report shows nothing.
>=20
> Thanks,
|
|
From: Everton L. B. <ev...@fa...> - 2005-07-15 20:31:30
|
Margins still not works.
I am testing the numeric format for my locale, see results:
XML:
<field value=3D"format(12345,'!$ %n')"/>
<literal width=3D"3"/>
<field value=3D"format(9876.54,'!# %.2f')"/>
<literal width=3D"3"/>
<field value=3D"format(123.45,'!$ %n')"/>
<literal width=3D"3"/>
PDF - using rlib_set_locale($rlib, "pt_BR");
12.345,00 R$ 9876,00 123,00 R$
PDF - using rlib_set_locale($rlib, "en_US");
$12,345.00 9876.54 $123.45
Decimal places at pt_BR dont works.
I think the margins problem is the same (because rlib
dont understand pt_BR decimal places).
--=20
Everton
Bob Doan escreveu:
> Use
>=20
> rlib_set_locale($rlib, "pt_BR");
>=20
> instead of setlocale
>=20
> - bob
>=20
> On Fri, 2005-07-15 at 16:12 -0300, Everton Luis Berz wrote:
>=20
>>Hi,
>>when I use locale pt_BR my report are showing wrong margins.
>>The decimal separator in pt_BR is "," (comma)
>>
>>My PHP:
>>setlocale(LC_NUMERIC, "pt_BR");
>>@dl("rlib.so") or die("Gerador de relat=C3=B3rios n=C3=A3o instalado!")=
;
>>$rlib =3D rlib_init() or die(_("Gerador de relat=C3=B3rios n=C3=A3o ini=
cializado!"));
>>...
>>
>>My XML:
>><Report fontSize=3D"10"
>> orientation=3D"portrait"
>> paperType=3D"'A4'"
>> leftMargin=3D"0.75"
>> topMargin=3D"0.40">
>>...
>>
>>
>>I tried use "0,75" and "0,40" but report shows nothing.
>>
>>Thanks,
>=20
>=20
>=20
>=20
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id=16492&op=3Dclick
> _______________________________________________
> Rlib-users mailing list
> Rli...@li...
> https://lists.sourceforge.net/lists/listinfo/rlib-users
>=20
|
|
From: Bob D. <bd...@si...> - 2005-07-19 14:39:04
|
I don't understand what you want exactly. Can you make a simple example using pt_BR with RLIB results and results you are expecting. - Bob On Fri, 2005-07-15 at 17:29 -0300, Everton Luis Berz wrote: > Margins still not works. > > I am testing the numeric format for my locale, see results: > > XML: > <field value="format(12345,'!$ %n')"/> > <literal width="3"/> > <field value="format(9876.54,'!# %.2f')"/> > <literal width="3"/> > <field value="format(123.45,'!$ %n')"/> > <literal width="3"/> > > PDF - using rlib_set_locale($rlib, "pt_BR"); > 12.345,00 R$ 9876,00 123,00 R$ > > PDF - using rlib_set_locale($rlib, "en_US"); > $12,345.00 9876.54 $123.45 > > > Decimal places at pt_BR dont works. > I think the margins problem is the same (because rlib > dont understand pt_BR decimal places). > |
|
From: Everton L. B. <ev...@fa...> - 2005-07-19 14:46:58
|
Example: XML: <field value="format(12345,'!$ %n')"/> <literal width="3"/> <field value="format(9876.54,'!# %.2f')"/> <literal width="3"/> <field value="format(123.45,'!$ %n')"/> <literal width="3"/> RLIB results: 12.345,00 R$ 9876,00 123,00 R$ Results expected: 12.345,00 R$ 9876,54 123,45 R$ -- Everton Bob Doan escreveu: > I don't understand what you want exactly. > > Can you make a simple example using pt_BR with RLIB results and results > you are expecting. > > - Bob > > On Fri, 2005-07-15 at 17:29 -0300, Everton Luis Berz wrote: > >>Margins still not works. >> >>I am testing the numeric format for my locale, see results: >> >>XML: >><field value="format(12345,'!$ %n')"/> >><literal width="3"/> >><field value="format(9876.54,'!# %.2f')"/> >><literal width="3"/> >><field value="format(123.45,'!$ %n')"/> >><literal width="3"/> >> >>PDF - using rlib_set_locale($rlib, "pt_BR"); >>12.345,00 R$ 9876,00 123,00 R$ >> >>PDF - using rlib_set_locale($rlib, "en_US"); >>$12,345.00 9876.54 $123.45 >> >> >>Decimal places at pt_BR dont works. >>I think the margins problem is the same (because rlib >>dont understand pt_BR decimal places). >> > > |
|
From: Bob D. <bd...@si...> - 2005-07-28 18:46:07
|
Try http://www.sicom.com/~bdoan/rlib-1.3.5.tar.gz On Tue, 2005-07-19 at 11:45 -0300, Everton Luis Berz wrote: > Example: > > XML: > <field value="format(12345,'!$ %n')"/> > <literal width="3"/> > <field value="format(9876.54,'!# %.2f')"/> > <literal width="3"/> > <field value="format(123.45,'!$ %n')"/> > <literal width="3"/> > > RLIB results: > 12.345,00 R$ 9876,00 123,00 R$ > > Results expected: > 12.345,00 R$ 9876,54 123,45 R$ > |
|
From: Everton L. B. <ev...@fa...> - 2005-07-28 19:11:51
|
All works fine! Thanks --=20 Everton Lu=EDs Berz Bob Doan escreveu: > Try >=20 > http://www.sicom.com/~bdoan/rlib-1.3.5.tar.gz >=20 >=20 |
|
From: Everton L. B. <ev...@fa...> - 2005-08-02 19:55:27
|
Sorry, but only works when LC_NUMERIC *at PHP* is 'C'. So, if LC_ALL or LC_NUMERIC is 'pt_BR' (on PHP) then report displays the same wrong values. Example: <?php setlocale(LC_NUMERIC, 'pt_BR'); //my php code that requires LC_NUMERIC pt_BR ... rlib_set_locale($rlib, 'pt_BR'); ... ?> Output (wrong): 12.345,00 R$ 9876,00 123,00 R$ 12.345,00 R$ If i comment setlocale line: <?php //setlocale(LC_NUMERIC, 'pt_BR'); //my php code that requires LC_NUMERIC pt_BR ... rlib_set_locale($rlib, 'pt_BR'); ... ?> Output (expected): 12.345,00 R$ 9876,54 123,45 R$ 12.345,67 R$ I guess rlib must only uses locale defined on rlib_set_locale function. -- Everton Everton Luis Berz escreveu: > All works fine! Thanks > |
|
From: Bob D. <bd...@si...> - 2005-08-02 20:20:43
|
On Tue, 2005-08-02 at 16:54 -0300, Everton Luis Berz wrote: > Sorry, but only works when LC_NUMERIC *at PHP* is 'C'. So, > if LC_ALL or LC_NUMERIC is 'pt_BR' (on PHP) then report displays the > same wrong values. > > I guess rlib must only uses locale defined on rlib_set_locale function. > > That's correct. I assume that's ok for now because you can set it to C manually right? - bob |