Terima kasih mister Frans, atas penjelasannya yg men-detail..

--- F|24N2 4N+0N <[EMAIL PROTECTED]> wrote:

> 
> print teks (mode draft terutama -- untuk print cepat);
> 
> 
> anda perlu buat 2 file:
> 
> 1. print.bat
> 
> isinya:
> type %1 > lpt1
> 
> 2. print.pif
> 
> pif ini semacam shortcut untuk windows. isinya standar
> saja yg penting command linenya ke print.bat
> 
> script untuk print ke teks file (contoh saja - untuk
> kode printer epson):
> 
> //////////////////////////////////////////////////////
> 
> // limit to 32,766
> integer li_FileNum
> string  ls_text
> string  ls_reset
> string  ls_crlf
> string  ls_nlq
> string  ls_draft
> string  ls_condensed, ls_cancel_condesed
> string  ls_emphasized, ls_cancel_emphasized
> 
> li_FileNum = FileOpen("PRINT001.SCR", StreamMode!,
> Write!, LockWrite!, Replace!)
> 
> ls_reset             = 'char(27)' + '@' + char(27) +
> char(64) // harus pertama 
> ls_crlf              = '' // char(10) + char(13)
> ls_nlq               = char(27) + 'x1'
> ls_draft             = char(27) + 'x0'
> ls_condensed         = char(27) + char(15)
> ls_cancel_condesed   = char(18)
> ls_emphasized        = char(27) + 'E'
> ls_cancel_emphasized = char(27) + 'F'
> 
> ls_text = ls_reset + ls_draft + 'Text DRAFT' +
> ls_condensed + 'condensed' + ls_cancel_condesed +
> ls_emphasized + 'EMPHASIZED' + ls_cancel_emphasized +
> ls_nlq + 'ANTON GANTENG'
> 
> FileWrite(li_FileNum, ls_text) // beware only 32,766
> bytes writes at a time.
> 
> fileclose(li_FileNum)
> ///////////////////////////////////////////////////////////////////////
> 
> 
> script untuk print :
> 
> /////////////////////////////////////////
> run("print.pif PRINT001.SCR",minimized!) // nggak bisa
> dipisah. kayak "print.bat" + "print001.scr"
> //////////////////////////
> 
> 
> untuk membuat benar2 teks file plus command2 printer,
> anda harus buat langsung ke teks file!; so jgn harap
> bisa dipreview WYSIWYG! kalo cuma buat dari dw ke
> teks, pake aja driver printer GENERIC TEXT. pasti
> hasilnya teks.
> 
> berikut adalah command dari printer epson lx300, untuk
> kodenya saya sudah translate (ada disebelah kanannya).
> command2 tsb lsg bisa ditambahankan ke teks.
> 
> auf Wiedersehen.
> 



                
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com


------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/NhFolB/TM
--------------------------------------------------------------------~-> 

IndoPB - Indonesia PB User Group 
To Post a message, send it to: [EMAIL PROTECTED]
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/
 

Kirim email ke