Printer Extension
Previous Topic  Next Topic 

Product

Printer Extension

Manufacturer

Standard Satellite Forms component

Website

http://www.satelliteforms.net/

Source code provided

Yes

Platform

PalmOS

Sample project(s)

PrinterApp

Keywords

printer


Printer works as a device driver for a Seiko DPU-414, Epson compatible printer so that items can be printed from within Satellite Forms applications.  This extension is meant to be a demonstration of extensions developed as device drivers for Satellite Forms applications.


Scripts API


The following methods are accessible from the scripting language. These are all global methods unless stated otherwise.


Global Method Usage:  [Name of method]

Example of usage:  OpenPort()

Private Method Usage:  Extensions(“[Extension Name]”).[Name of method]

Example of private method usage:  Extensions(“Printer Extension”).About()


About()

A private method that shows the extension's about box.



ClosePort()

Closes the serial port. 

Example of usage:  ClosePort()



LbackSp()

Goes back one space in the output. 

Example of usage:  LBackSp()



Lbell()

LBell()



LDDGraphics(integer, integer)

LDDGraphics(n1,n2)



Lcancel()

Cancels the current print job. 

Example of usage:  LCancel()



Lcondensed(integer)

Prints condensed text. 

Example of usage:  LCondensed(Enable)



LdoubleStrike(integer)

LDoubleStrike(Enable)



LdoubleWidth(integer)

Sets the printer output to double-width lines. 

Example of usage:  LDoubleWidth(Enable)



LdoubleWidthN(integer)

LDoubleWidthN(noChars)



Lemphasized(integer)

Prints the following text in a bold font. 

Example of usage:  LEmphasized(Enable)



LformFeed()

Form feeds the printer. 

Example of usage:  LFormFeed()



LintnlChars(integer)

Prints international characters. 

Example of usage:  LIntnlChars(Val)



LlineFeed(integer)

LLineFeed(Val)



LltMargin(integer)

Sets the left margin. 

Example of usage:  LLRtMargin(Val)


LpageLength(integer)

LPageLength(Length)


Lprint(integer)

Prints the given string. 

Example of usage:  LPrint(String)



LprintCR()

LPrintCR()



LprintDir(integer)

LPrintDir(Val)


LprintF(string, integer, integer)

Outputs a formatted string to the printer. 

Example of usage:  LPrintF(String, W, RJustify)


LprintGraph(integer, string, integer)

Print in graphics mode. 

Example of usage:  LPrintGraph(mode, dat, len) m = 0 Single, m = 1 Double Density



LprintLF()

LPrintLF()


LprintLn(string)

Outputs a line to the printer. 

Example of usage:  LPrintLn(String)


LrepeatStr(string, integer)

Repeats the given string the number of times specified. 

Example of usage:  LRepeatStr(s,n) where s = String and n = repeat count


Lreset()

Reset the printer. 

Example of usage:  LReset()


LrtMargin(integer)

Sets the right margin. 

Example of usage:  LRtMargin(Val)


LsetAutoLF(integer)

LSetAutoLF(val) true sends CR+LF in LPrintLn(s)


LSDGraphics(integer, integer)

LSDGraphics(n1,n2)



LselectFont(integer, integer)

Selects the desired font. 

Example of usage:  LSelectFont(Val)


LsetGraphics(integer, integer, integer)

LSetGraphics(m,n1,n2)



LsetLine(integer)

LSetLine(Val) where Val can be either 11 or 15.


Lsubscript(integer)

Prints the given value as a subscript character. 

Example of usage:  LSubscript(Val)


Lsuperscript(integer)

Prints the given value as a superscript character. 

Example of usage:  LSuperscript(Val)


Ltab()

Prints a tab character. 

Example of usage:  LTab()


OpenPort()

Opens the serial port. 

Example of usage:  OpenPort()


SetPrinter(integer)

Selects the output printer based on their ID number. 

Example of usage:  SetPrinter(ID)


SetPort(integer, integer, integer, integer, integer)

Configures the serial port. 

Example of usage:  SetPort(Baud,HwHs,Data,Stop,Parity) where HwHs is the hardware handshake.


DocID: 10140  DocDate: 2005-07-18