coba gunakan function fileopen, saya pernah menggunakannya di powerbuilder 6.5
berikut contohnya yang saya pakai:
Untuk cetak data ke printer perbaris(printer lgsg berhenti setelah cetak 1
brs), biasanya utk struk kasir swalayan
===============================================================
di PowerBuilder gunakan "FileOpen" dengan nama file 'LPT1' ato 'Com1'
tergantung dimana printer disambungkan, com untuk jaringan, lalu gunakan
"FileWrite" untuk menuliskan data/string yang ingin dicetak, setelah itu tutup
dengan "FileClose".Example:
Long li_FileNum
li_FileNum = FileOpen('LPT1', LineMode!, Write!, LockWrite!, Replace!)
FileWrite(li_FileNum, 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
FileWrite(li_FileNum, 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb')
FileClose( li_FileNum )
jadi nama filenya diganti dengan port printer, sehingga program akan
mengirimkan data ke port printer....
waktu saya pakai printer langsung berhenti setelah mencetak
'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb'
=================================
Rizal Sugiarta
IT - Development
PT. Bank Artha Graha Internasional, Tbk.
----- Original Message -----
From: khalatif8
To: [email protected]
Sent: Monday, June 05, 2006 7:33 PM
Subject: [indopb] Cetak Struk Swalayan
Hi All...
Tulungin donk gmana carany cetak kertas struk, supaya panjang kertas
sesuai jumlah item belanja - kertasnya bisa panjang - bisa pendek :)
Thanks's
===================================================
PT. BANK ARTHA GRAHA INTERNASIONAL TBK. DISCLAIMER:
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager. This message contains confidential information
and is intended only for the individual named. If you are not the
named addressee you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately by e-mail if you have
received this e-mail by mistake and delete this e-mail from your
system. If you are not the intended recipient you are notified that
disclosing, copying, distributing or taking any action in reliance on
the contents of this information is strictly prohibited.
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Protect your PC from spy ware with award winning anti spy technology. It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/NhFolB/TM
--------------------------------------------------------------------~->
-----------------------------------------------
IndoPB - Indonesia PB User Group
Learn PB6 by download FasTrack to PB6 at :
http://groups.yahoo.com/group/indopb/files/Belajarpb6/
To Unsubscribe,send a blank message to: [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/indopb/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/