baanjim
15th June 2007, 10:55
Hi,
I create a report with some amounts fields.
When I choose the "D" device, the amounts fields (details and sums) are rigth aligned. But when I chose a "PDF" device, theses same amounts are left aligned in the PDF file...
The tool I use to convert from ERP ln to PDF format is a convertor released by SSA and called in a 3GL script linked to the device:
the command is:
run.app = "java -cp ${BSE}/java/xml-apis.jar:${BSE}/java/ssa-bml.jar:${BSE}/java/xercesImpl.jar com.ssaglobal.bml.BMLConverter PDF " & "${BSE}/tmp/Fileout." & str.num & " " & local.path

A this time, I managed to left align the amounts by creating a report script and making a conversion like this (example):
domain leftalignstring amount.str
detail.1:
before.layout:
amount.str = str$(amount)
where amount.str is a report field rigth aligned (in the report editor)...
I'm not really satisfied with this solution, because I must realise manually then sums on all amounts...

Does anybody knows if a simple solution exists?
Thanks for all ;)

vahdani
15th June 2007, 13:11
Hi BaanJim,

i don't have an answer for but I am very interested to know what exactly you are doing there. I mean calling java an all that! Please share with us your secrets! I'm sure I'm not the only one, who finds this interesting :rolleyes:

baanjim
15th June 2007, 17:03
Hi BaanJim,

i don't have an answer for but I am very interested to know what exactly you are doing there. I mean calling java an all that! Please share with us your secrets! I'm sure I'm not the only one, who finds this interesting :rolleyes:
:D hum.... I was looking for help only :p
I didn't personnaly made this development, so I can only give a global explanation:
* I use a device PDF with a 3GL attached (script provided by SSA) and containing the code I wrote in quote mode.
* SSA provided the java classes listed in the line (Standard java like "xml-apis.jar", "xercesImpl.jar" and custom java "ssa-bml.jar").
* The tmp file generated by the report (in xml format) is copied (in the 3GL) in the spool.out file.
* And then, this file is converted with the java classes...
Unfortunally, I don't have info on the source code of this classes (in particular the SSA java class). So I can only give principles... ;)