|
 |
|
สอบถามการสร้าง PHP Barcode สำหรับ ธนาคารทั่วประเทศครับ |
|
 |
|
|
 |
 |
|
***ออกตัวก่อนนะครับว่า ผมก็ไม่เคยทำธุรกรรมกับ BOT เหมือนกัน***
ผมเข้าใจว่า BOT ต้องการ CR มาคั่นตำแหน่งของข้อมูลเฉยๆ เพื่อให้เข้าใจตรงกันกับนักพัฒนา
จึงกำหนดว่าให้ใช้ CR เป็นตัวคั่น
ผมลองใช้ app ใน android scan barcode จากใบแจ้งชำระหนี้ของ SCB
ก็ได้ออกมาบรรทัดเดียวเหมือนกันครับ ไม่มีออกมาในลักษณะคนละบรรทัดอย่างที่ท่านต้องการ
ผมได้ลองเขียนในหลายๆ ลักษณะเพื่อแสดงผลดังกล่าว ก็ทำไม่ได้ครับ (ใช้ zend barcode)
***ต้องเข้าใจว่า บาร์โค้ดแบบแท่งนั้น ไม่มีการแสดงผล text หลายบรรทัด*** (หรือผมอาจจะคิดไปเอง และไม่เคยเห็นก็เป็นได้)
[head][/head]
$cr = chr(0x0D);
$cr = "\r\n";
$cr = "\r";
$cr = "\n";
$cr = chr(0001101);
$options = array('text'=>'0994000401183'.$cr.'5710001'.$cr.'012557'.$cr.'000');
$barcode = Zend_Barcode::factory('code128', 'image', $options, array());
$barcode->render();
$cr ผมได้ลองในหลายๆ ลักษณะ ก็ไม่เป็นผลครับ
การแสดงผลนั้น มีอักขระแปลกๆ ในตำแหน่ง $cr แต่ว่า พอ scan แล้ว ได้ข้อมูลปกติ บรรทัดเดียวตามที่ BOT ต้องการ และมี cr เป็นตัวคั่นแท้แน่นอน
ดังนั้น คำตอบของคำถามนี้ ผมจึง "คิดว่า"
- แสดงผลในบาร์โค้ดหลายบรรทัดไม่ได้
- cr ที่ BOT กำหนดมานั้น ใช้ในขั้นตอนการประมวลผลเฉยๆ
ปล. ที่ถูกต้องที่สุด ท่านต้องติดต่อกับทาง BOT เพื่อปรึกษารายละเอียดที่แท้จริงต่อไปครับ
ผิดถูกขออภัย
|
 |
 |
 |
 |
Date :
2014-07-03 12:05:04 |
By :
triplea |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 00
|