SIMITGROUP / phpjasperxml

This is a php wysiwyg report library
BSD 3-Clause "New" or "Revised" License
44 stars 45 forks source link

Need adbise for barcode label #94

Closed lvsan closed 5 months ago

lvsan commented 6 months ago

HI All,

Can advise how can i get the barcode label in center or align the left? cause the design seem weird feedback from customer.

image

below is the xml.

<?xml version="1.0" encoding="UTF-8"?>

kstan79 commented 6 months ago

Hm... you may check phpjasperxmlelement.php, also the renderer of barcode is tcpdf.

So far I align content according pdf result instead of jasperstudio, you may use this way or dig the code if you wish

lvsan commented 6 months ago

Hi Ks Tan,

Will you able to provide me the sample code on how does this to be change?

Thanks.

Best regards,

Low Voon San Assistant Project Manager DCS Synthesis Pte Ltd

Office : +65 6282 7655 Fax : +65 6742 7451 Email : @.**@.> Corporate Video : www.synthesis.bz/video.htmlhttp://www.synthesis.bz/video.html 865 Mountbatten Road #05-27 Katong Shopping Centre Singapore 437844 @. @.

From: Ks Tan @.> Sent: Friday, 5 April 2024 7:03 pm To: SIMITGROUP/phpjasperxml @.> Cc: Ms Low @.>; Author @.> Subject: Re: [SIMITGROUP/phpjasperxml] Need adbise for barcode label (Issue #94)

Hm... you may check phpjasperxmlelement.php, also the renderer of barcode is tcpdf.

So far I align content according pdf result instead of jasperstudio, you may use this way or dig the code if you wish

— Reply to this email directly, view it on GitHubhttps://github.com/SIMITGROUP/phpjasperxml/issues/94#issuecomment-2039513400, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AATZXXCG5JAMEYGI4F7MZHDY32AF3AVCNFSM6AAAAABFYRF6PWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZZGUYTGNBQGA. You are receiving this because you authored the thread.Message ID: @.**@.>>

kstan79 commented 6 months ago

No sample code, just align according pdf

lvsan commented 5 months ago

ok. let me try first. thanks.

kstan79 commented 5 months ago

update latest 2.1.5, it has improve alignment

lvsan commented 5 months ago

thanks. will update and try now.

lvsan commented 5 months ago

executeExpression: $F{ItemBarcode}

after parse expressiom: <{{1005000255190}}>

string

executeExpression: "S"+$F{Item_Price1}

after parse expressiom: "S"+10.90

string

Eval failed.

return "S".10.90;

syntax error, unexpected floating-point number ".10", expecting ";"

when i try there is error while printing.

kstan79 commented 5 months ago

You may temporary roll back last version, I notice some situation it happens and I need make some decision on source code

lvsan commented 5 months ago

noted for that. thanks.

kstan79 commented 5 months ago

Try update latest