Documente Academic
Documente Profesional
Documente Cultură
Users Manual(C#)
Summary
This manual is for StarIO SDK for Windows Store Apps and the guideline to construct printing
application is included for Windows store application developers.
History of document
Date
Feb. 26, 2016
Contents
First release
2 / 90
2016 Star Micronics. All rights reserved.
CAUTION
The information in this manual is subject to change without notice.
STAR
MICRONICS CO., LTD. has taken every measure to provide accurate information, but
assumes no liability for errors or omissions.
STAR
MICRONICS CO., LTD. is not liable for any damages resulting from the use of information
contained in this manual.
Reproduction
3 / 90
2016 Star Micronics. All rights reserved.
Content
1
Introduction ..........................................................................................................................................6
1.1
List..................................................................................................................................................6
1.2
Operating System ..........................................................................................................................6
1.3
Interface ........................................................................................................................................6
1.4
Printer, Emulation .........................................................................................................................6
2
Hands-On ..............................................................................................................................................8
2.1
Make work solution .......................................................................................................................8
2.2
Add StarIOPort / StarIO_Extension runtime component ............................................................10
2.3
Make Hands-On application 1 .....................................................................................................13
2.4
Make Hands-On application 2 .....................................................................................................25
2.5
Verify Printer Status and Monitor the Completion of Printing ...................................................39
3
API reference ......................................................................................................................................43
3.1
Port class......................................................................................................................................43
3.1.1
Port constructor ..................................................................................................................43
3.1.2
ConnectAsync method ........................................................................................................44
3.1.3
WriteAsync method .............................................................................................................45
3.1.4
ReadAsync method ..............................................................................................................45
3.1.5
GetParsedStatusAsync method ..........................................................................................46
3.1.6
BeginCheckedBlockAsync method......................................................................................46
3.1.7
EndCheckedBlockAsync method ........................................................................................47
3.1.8
GetOnlineStatusAsync method ..........................................................................................47
3.1.9
Close method.......................................................................................................................48
3.2
ProductId Enumeration ...............................................................................................................49
3.3
ProductInformation class ............................................................................................................50
3.3.1
FindAllAsync method ...........................................................................................................50
3.4
ProductInformationCollection class ............................................................................................51
3.5
Status class ..................................................................................................................................52
3.6
Util class .......................................................................................................................................55
3.6.1
GetStarIOVersion method ...................................................................................................55
3.7
PrinterInterfaceType enumeration .............................................................................................56
3.8
StarIoExtManager class ...............................................................................................................57
3.8.1
StarIoExtManager constructor ............................................................................................58
3.8.2
connectAsync method .........................................................................................................59
3.8.3
disconnectAsync method ....................................................................................................60
3.8.4
LockAsync method...............................................................................................................61
3.8.5
Port property .......................................................................................................................61
3.8.6
printerOnlineStatus property ..............................................................................................62
3.8.7
printerPaperReadyStatus property .....................................................................................62
3.8.8
printerCoverOpenStatus property ......................................................................................62
3.8.9
cashDrawerOpenStatus property ........................................................................................63
3.8.10 barcodeReaderConnectStatus property ..............................................................................63
3.8.11 cashDrawerOpenActiveHigh property.................................................................................63
3.8.12 PrinterImpossibleEvent event .............................................................................................64
3.8.13 PrinterOnlineEvent event ....................................................................................................65
3.8.14 PrinterOfflineEvent event....................................................................................................66
3.8.15 PrinterPaperReadyEvent event ...........................................................................................67
3.8.16 PrinterPaperNearEmptyEvent event ...................................................................................68
3.8.17 PrinterPaperEmptyEvent event ...........................................................................................69
3.8.18 PrinterCoverOpenEvent event ............................................................................................70
3.8.19 PrinterCoverClosedEvent event ..........................................................................................71
4 / 90
2016 Star Micronics. All rights reserved.
5 / 90
2016 Star Micronics. All rights reserved.
1 Introduction
Explain the usage of [StarIOPort runtime component] which makes development of Windows store
application with printers easier with the form of Hands-On.
1.1 List
Name
Description
Sample folder
StarIO
StarIOPortHandsOn_CS folder
UsersManual _CS_En.docx
UsersManual _CS_Jp.docx
readme.txt
readme_Jp.txt
SoftwareLicenseAgreement.pdf
SoftwareLicenseAgreement_Jp.pdf
Description
Windows8.1
Windows10
x86/x64
x86/x64 (except Windows IO IoT Core)
1.3 Interface
Interface
Bluetooth
LAN
POS Printer
Mobile Printer
TSP650II
TSP700II
TSP800II
FVP10
TSP100LAN
TSP100IIILAN
TSP100IIIWLAN
mPOP
SM-S210i
SM-S220i
SM-S230i
SM-T300i
SM-T400i
SM-L200
F/W Version
Emulation
V1.0 or later
V5.0 or later
V2.0 or later
V2.0 or later
V2.0 or later
V1.0 or later
V1.0 or later
V1.0 or later
V3.0 or later
V3.0 or later
V1.0 or later
V3.0 or later
V3.0 or later
V1.0 or later
StarLine Emulation
StarPRNT Emulation
6 / 90
2016 Star Micronics. All rights reserved.
Portable Printer
When using StarPRNT emulation:
To use the StarPRNT emulation, set the emulation setting of the printer to StarPRNT Mode. To
change the emulation, proceed as follows. (For SM-L200, it does not need to switch the emulation.)
Switching over between StarPRNT and ESC/POS emulation
Network Interface
Assign an IP Address to the Star Printer and connect it to the network. Star Printers do not ship with an IP
Address pre-assigned; this can set by a DHCP network.
Use Star POS Printers with the #9100 Multi Session disabled. The setting can be confirmed by Test Print
which can be executed by holding down the printer's feed button while turning the printer on.
Refer to "guidelines-ethernet_en.pdf for how to confirm and change the #9100 Multi Session setting and
how to set the Static IP Address.
TSP100IIIW
Connecting Tablet/PC
See the Online manual (Setup - Connect Tablet/PC).
7 / 90
2016 Star Micronics. All rights reserved.
2 Hands-On
2.1 Make work solution
Make work solution for Hands-On.
8 / 90
2016 Star Micronics. All rights reserved.
Step2. Go to [Templates]-[Other Project Types]-[Visual Studio Solutions]-[Blank Solution] from [Make new
project] and make work solution with any name. (example: [StarIOPortHandsOn])
9 / 90
2016 Star Micronics. All rights reserved.
Step1. Open the [Empty Solution] folder with reference of Explorer, and copy StarIOPort folder to it.
10 / 90
2016 Star Micronics. All rights reserved.
Step2. Add StarIOPort runtime component [StarIOPort.winmd] and StarIO_Extension runtime component
[StarIO_Extension.winmd] to solution by [Current Solution Item Addition].
11 / 90
2016 Star Micronics. All rights reserved.
12 / 90
2016 Star Micronics. All rights reserved.
Step1. Go to [Visual C#]-[Store Apps]-[Windows Apps]-[Blank App(Windows)] from [New Project Addition],
and add Hands-On application with any name(example : [App1]).
13 / 90
2016 Star Micronics. All rights reserved.
14 / 90
2016 Star Micronics. All rights reserved.
Step3. Add StarIOPort/StarIO_Extension runtime component in solution to project reference setting from
[Reference Addition]
15 / 90
2016 Star Micronics. All rights reserved.
Step4. The following solution construction will be built by addition of StarIOPort/StarIO_Extension runtime
component to reference setting.
16 / 90
2016 Star Micronics. All rights reserved.
17 / 90
2016 Star Micronics. All rights reserved.
Step6.
Allow to use printer with Hands-On application 1 by addition of the following description to
[Package.appxmanifest].
18 / 90
2016 Star Micronics. All rights reserved.
Step7. Open [MainPage.xaml] and arrange [Button] from Tool Box with any location and any size.
19 / 90
2016 Star Micronics. All rights reserved.
Step8. Double-click arrange [Button] and [Button_click] method will be created in [MainPage.xaml.cs].
20 / 90
2016 Star Micronics. All rights reserved.
21 / 90
2016 Star Micronics. All rights reserved.
22 / 90
2016 Star Micronics. All rights reserved.
23 / 90
2016 Star Micronics. All rights reserved.
Step13. The following will be come up when [Button] is tapped only first time. If Allow button is selected,
[Hello Windows 8,1] will be printed.
24 / 90
2016 Star Micronics. All rights reserved.
Step1.
Go to "[Visual C#] -[Windows Store]-[New application(XAML)] from [Add a new project], then add
Hands-On application2 with any name.
Step2.
25 / 90
2016 Star Micronics. All rights reserved.
Step3.
Open [MainPage.xaml], and arrange [ListBox] with any location and any size.
26 / 90
2016 Star Micronics. All rights reserved.
Step4.
<Page.Resources>
<CollectionViewSource x:Name="ProductListSource"/>
</Page.Resources>
27 / 90
2016 Star Micronics. All rights reserved.
Step5.
28 / 90
2016 Star Micronics. All rights reserved.
Step6.
29 / 90
2016 Star Micronics. All rights reserved.
Step7.
30 / 90
2016 Star Micronics. All rights reserved.
Step8. Double-click [Tapped] on the property page of [List Box] and [ProductListBox_Tapped] will be
created. .
31 / 90
2016 Star Micronics. All rights reserved.
Step9.
Add the following description regarding PrivateProperty to class [MainPage] in source code of
[MainPage.xaml].
32 / 90
2016 Star Micronics. All rights reserved.
Step10.
33 / 90
2016 Star Micronics. All rights reserved.
Step11.
try
{
productCollection = await StarIOPort.ProductInformation.FindAllAsync();
ProductListSource.Source = productCollection;
ProductListBox.SelectedIndex = 0;
}
catch
{
}
34 / 90
2016 Star Micronics. All rights reserved.
Step12.
35 / 90
2016 Star Micronics. All rights reserved.
Step13.
36 / 90
2016 Star Micronics. All rights reserved.
Step14.
37 / 90
2016 Star Micronics. All rights reserved.
Step15.
Step16.
The following will be come up when [ListBox] is tapped only first time. If Allow button is
selected, [Hello Windows 8,1] will be printed.
38 / 90
2016 Star Micronics. All rights reserved.
Step1.
Add the description to disable the [ProductListBox] at the beginning and the description to
enable the [ProductListBox] at the end of the [ProductListBox_Tapped] method as shown
below.
By adding these descriptions, you can prevent multiple tap and confirm the printing
completion.
ProductListBox.IsEnabled = false;
ProductListBox.IsEnabled = true;
39 / 90
2016 Star Micronics. All rights reserved.
Step2.
Replace the description in the [using] part of the [ProductListBox_Tapped] method with the
following.
StarIOPort.Status status;
await port.ConnectAsync(info,"");
status = await port.BeginCheckedBlockAsync();
if (status.Offline == true)
{
throw new Exception("Printer is offline.");
}
if (await port.WriteAsync(buffer) != buffer.Length)
{
throw new Exception("WriteAsync failed.");
}
status = await port.EndCheckedBlockAsync();
if (status.Offline == true)
{
String message = "Printer is offline.";
if (status.ReceiptPaperEmpty == true)
{
message += "\nPaper is enmpty.";
}
if (status.CoverOpen == true)
{
message += "\nCover is open.";
}
throw new Exception(message);
}
40 / 90
2016 Star Micronics. All rights reserved.
Step3. Replace the description of the [catch] part in [ProductListBox_Tapped] method with the
following.
catch (Exception exc)
{
Windows.UI.Popups.MessageDialog dialog = new Windows.UI.Popups.MessageDialog(exc.Message);
dialog.ShowAsync();
}
41 / 90
2016 Star Micronics. All rights reserved.
Step4.
Execute Hands On application 2 and verify that the [ProductListBox] is disable after it is
tapped until the completion of printing.
Step5.
Verify the exception I generated and Printer is offline [MessageDialog] appearsuntil the
[ProductListBox] is tapped with the cover opened.
42 / 90
2016 Star Micronics. All rights reserved.
3 API reference
3.1 Port class
Syntax
Description
Port
Method
Description
ConnectAsync
WriteAsync
ReadAsync
GetParsedStatusAsync
BeginCheckedBlockAsync
EndCheckedBlockAsync
GetOnlineStatusAsync
Close
Property
Non
Namespace
StarIOPort
public Port()
public Port(Int32 timeout)
Argument
Description
Type
timeout
Int32
Return Value
Description
Port
Port object
43 / 90
2016 Star Micronics. All rights reserved.
Description
Type
portName
string
info
portSettings
Return Value
Description
IAsyncAction
ProductInformation
string
*1
Interface
Ethernet
Bluetooth
Emulation(*2)
StarLine
StarPRNT
StarGraphic
StarLine
StarPRNT
StarGraphic
portSettings
the empty string
portable;
the empty string
the empty string
;l
;d[value]
portable;
portable;l
portable;d[value]
the empty string
;l
Retry OFF
Retry ON
Data timeout function(*3) ON
Retry OFF
Retry ON
Data timeout function(*3) ON
Retry OFF
Retry ON
44 / 90
2016 Star Micronics. All rights reserved.
Description
Type
buffer
timeout
IBuffer
Int32
Return Value
Description
IAsyncOperation<uint>
Return value by
asynchronous action
Description
uint
Description
Type
timeout
Int32
Return Value
Description
IAsyncOperation<IBuffer>
Return value by
asynchronous action
Description
IBuffer
45 / 90
2016 Star Micronics. All rights reserved.
Description
Type
timeout
Int32
Return Value
IAsyncOperation<Status>
Description
Object to control asynchronous operation
Return value by
asynchronous action
Description
Status
Status object
Description
Type
timeout
Int32
Return Value
Description
IAsyncOperation<Status>
Return value by
asynchronous action
Description
Status
46 / 90
2016 Star Micronics. All rights reserved.
Description
Type
Timeout
Int32
Return Value
Description
IAsyncOperation<IBuffer>
Return value by
asynchronous action
Description
Status
Description
Type
Timeout
Int32
Return Value
Description
IAsyncOperation<bool>
Return value by
asynchronous action
Description
bool
47 / 90
2016 Star Micronics. All rights reserved.
Return Value
48 / 90
2016 Star Micronics. All rights reserved.
Method
Member
Description
Type
BluetoothPOSPrinter
BluetoothMobilePrinter
LANPOSPrinter
ProductId
ProductId
ProductId
Namespace
StarIOPort
49 / 90
2016 Star Micronics. All rights reserved.
Method
Description
FindAllAsync
Property
Description
Type
Name
MacAddress
ProductId
Name
MAC address
Identifier to specify the product type
string
string
ProductId
Namespace
StarIOPort
Desciption
Type
printerInterfaceType
StarIOPort.PrinterInterface
Return Value
Desciption
IAsyncOperation<ProductInformationCollection>
Desctiption
ProductInformationCollection
50 / 90
2016 Star Micronics. All rights reserved.
Method
Property
Description
Type
Count
Item
int
ProductInformation
Namespace
StarIOPort
51 / 90
2016 Star Micronics. All rights reserved.
Method
Property
Description
Type
CoverOpen
Offline
CompulsionSwitch
OverTemp
UnrecoverableError
CutterError
MechanicalError
HeadThermistorError
VoltageError
ReceiptPaperEmpty
ReceiptPaperNearEmptyInner
ReceiptPaperNearEmptyOuter
ETBAvailable
ETBCounter
RawStatus
Cover open
Off line
Compulsion switch
Stop printing by head thermistor
Unrecoverable error
Cutter error
Mechanical error
Head thermistor error
Voltage error
Paper end
Paper near end (inner)
Paper near end (outer)
Availability of ETB
ETB counter
Number of Status byte
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
byte
byte[]
Namespace
StarIOPort
52 / 90
2016 Star Micronics. All rights reserved.
Support model
Member name
TSP
100III
LAN
TSP
100III
W
TSP
100
LAN
FVP10
TSP
650
II
BlackMarkError
TSP
700
II
TSP
800
II
CompulsionSwitch
CoverOpen
CutterError
ETBAvailable
ETBCounter
Offline
OverTemp
RawStatus
ReceiptPaperEmpty
ReceiptPaperNearEmptyInner
ReceiveBufferOverflow
HeadThermistorError
PresenterPaperJamError
PresenterState
UnrecoverableError
VoltageError
53 / 90
2016 Star Micronics. All rights reserved.
Support model
Member name
BlackMarkError
SML200
SMS210i
SMS220i
SMS230i
**
**
SMT300i
SMT400i
CompulsionSwitch
CoverOpen
mPOP
CutterError
ETBAvailable
ETBCounter
HeadThermistorError
Offline
OverTemp
RawStatus
ReceiptPaperEmpty
PresenterPaperJamError
PresenterState
ReceiptPaperNearEmptyInner
ReceiveBufferOverflow
UnrecoverableError
VoltageError
54 / 90
2016 Star Micronics. All rights reserved.
Method
Description
GetStarIOVersion
Property
Non
Namespace
StarIOPort
Return Value
Description
string
StarIO Version
55 / 90
2016 Star Micronics. All rights reserved.
Method
Member
Description
Type
Bluetooth
LAN
PrinterInterfaceType
PrinterInterfaceType
Namespace
StarIOPort
56 / 90
2016 Star Micronics. All rights reserved.
Description
StarIOExtManager
Method
Description
connectAsync
disconnectAsync
LockAsync
Starts management.
Stops management.
Obtains exclusive access to communication on the port property.
Property
Description
port
printerOnlineStatus
printerPaperReadyStatus
printerCoverOpenStatus
cashDrawerOpenStatus
barcodeReaderConnectStatus
cashDrawerOpenActiveHigh
Event
Description
PrinterImpossibleEvent
PrinterOnlineEvent
PrinterOfflineEvent
PrinterPaperReadyEvent
PrinterPaperNearEmptyEvent
PrinterPaperEmptyEvent
PrinterCoverOpenEvent
PrinterCoverCloseEvent
CashDrawerOpenEvent
CashDrawerCloseEvent
BarcodeReaderImpossibleEvent
BarcodeReaderConnectEvent
BarcodeReaderDisconnectEvent
BarcodeDataReceivedEvent
AccessoryConnectSuccessEvent
AccessoryConnectFailureEvent
AccessoryDisconnectEvent
57 / 90
2016 Star Micronics. All rights reserved.
Description
type
Manager type
Standard:
Type
WithBarcodeReader:
OnlyBarcodeReader:
StarIO_Extension.Star
IoExtManagerType
Argument
Description
Type
portName
Port name
string
Argument
Description
Type
portSettings
Port settings
string
Argument
Description
Type
Timeout
Int32
Return value
Description
StarIoExtManager
StarIoExtManager object
Example
using StarIO_Extension;
Refer to BarcodeReaderwithPrintPage.xaml.cs.
58 / 90
2016 Star Micronics. All rights reserved.
Description
IAsyncOperation<bool>
Return value by
asynchronous action
Description
bool
Example
using StarIO_Extension;
Refer to BarcodeReaderwithPrintPage.xaml.cs.
59 / 90
2016 Star Micronics. All rights reserved.
Description
IAsyncOperation<bool>
Return value by
asynchronous action
Description
bool
Example
using StarIO_Extension;
Refer to BarcodeReaderwithPrintPage.xaml.cs.
60 / 90
2016 Star Micronics. All rights reserved.
Description
IAsyncOperation<IDisposable>
Description
IDisposable
IDisposable object
Example
using StarIO_Extension;
Refer to BarcodeReaderwithPrintPage.xaml.cs.
{ get;}
Property value
Description
Type
StarIOPort object
StarIOPort.Port
61 / 90
2016 Star Micronics. All rights reserved.
{ get; }
Description
Type
Invalid
Equipment not functioning
Printer detected as online
Printer detected as offline
StarIO_Extension.StarIo
ExtManagerStatus
Description
Type
Invalid
Equipment not functioning
Printer's paper detected as ready
Printer's paper detected as almost
empty
Printer's paper detected as empty
StarIO_Extension.StarIo
ExtManagerStatus
Description
Type
Invalid
Equipment not functioning
Printer's cover detected as open
Printer's cover detected as closed
StarIO_Extension.StarIo
ExtManagerStatus
62 / 90
2016 Star Micronics. All rights reserved.
Description
Type
Invalid
Equipment not functioning
Cash drawer detected as open
Cash drawer detected as closed
StarIO_Extension.StarIo
ExtManagerStatus
Description
Type
StarIO_Extension.StarIo
ExtManagerStatus
Description
Type
bool
63 / 90
2016 Star Micronics. All rights reserved.
Refer to BarcodeReaderwithPrintPage.xaml.cs.
64 / 90
2016 Star Micronics. All rights reserved.
Refer to BarcodeReaderwithPrintPage.xaml.cs.
65 / 90
2016 Star Micronics. All rights reserved.
Refer to BarcodeReaderwithPrintPage.xaml.cs.
66 / 90
2016 Star Micronics. All rights reserved.
Refer to BarcodeReaderwithPrintPage.xaml.cs.
67 / 90
2016 Star Micronics. All rights reserved.
Refer to BarcodeReaderwithPrintPage.xaml.cs.
68 / 90
2016 Star Micronics. All rights reserved.
Refer to BarcodeReaderwithPrintPage.xaml.cs.
69 / 90
2016 Star Micronics. All rights reserved.
Refer to BarcodeReaderwithPrintPage.xaml.cs.
70 / 90
2016 Star Micronics. All rights reserved.
Refer to BarcodeReaderwithPrintPage.xaml.cs.
71 / 90
2016 Star Micronics. All rights reserved.
Refer to BarcodeReaderwithPrintPage.xaml.cs.
72 / 90
2016 Star Micronics. All rights reserved.
Refer to BarcodeReaderwithPrintPage.xaml.cs.
73 / 90
2016 Star Micronics. All rights reserved.
Refer to BarcodeReaderwithPrintPage.xaml.cs.
74 / 90
2016 Star Micronics. All rights reserved.
Refer to BarcodeReaderwithPrintPage.xaml.cs.
75 / 90
2016 Star Micronics. All rights reserved.
Refer to BarcodeReaderwithPrintPage.xaml.cs.
76 / 90
2016 Star Micronics. All rights reserved.
Refer to BarcodeReaderwithPrintPage.xaml.cs.
77 / 90
2016 Star Micronics. All rights reserved.
Refer to BarcodeReaderwithPrintPage.xaml.cs.
78 / 90
2016 Star Micronics. All rights reserved.
Refer to BarcodeReaderwithPrintPage.xaml.cs.
79 / 90
2016 Star Micronics. All rights reserved.
Refer to BarcodeReaderwithPrintPage.xaml.cs.
80 / 90
2016 Star Micronics. All rights reserved.
Description
Standard
WithBarcodeReader
OnlyBarcodeReader
Namespace
StarIO_Extension
81 / 90
2016 Star Micronics. All rights reserved.
Description
Invalid
Impossible
PrinterOnline
PrinterOffline
PrinterPaperReady
PrinterPaperNearEmpty
PrinterPaperEmpty
PrinterCoverOpen
PrinterCoverClose
CashDrawerOpen
CashDrawerClose
BarcodeReaderConnect
BarcodeReaderDisconnect
Invalid
Equipment not functioning
Printer detected as online
Printer detected as offline
Printer paper detected as ready
Printer paper detected as almost empty
Printer paper detected as empty
Printer cover detected as open
Printer cover detected as closed
Cash drawer detected as open
Cash drawer detected as closed
Barcode reader connection detected
Barcode reader disconnection detected
Namespace
StarIO_Extension
82 / 90
2016 Star Micronics. All rights reserved.
Method
Description
createBuilder
Property
Namespace
StarIO_Extension
Description
Type
emulation
Emulation type
StarIO_Extension.Emulation
Return value
Description
Type
ISCBBuilder
ISCBBuilder object
ISCBBuilder
Example
using StarIO_Extension;
ISCBBuilder builder = SCBFactory.createBuilder(Emulation.StarLine);
83 / 90
2016 Star Micronics. All rights reserved.
Description
beginDocument
endDocument
appendCutPaper
appendPeripheral
appendBitmapAsync
getBuffer
void beginDocument()
Argument
Return value
Example
using StarIO_Extension;
//In starLine emulation case
ISCBBuilder builder = SCBFactory.createBuilder(Emulation.StarLine);
builder.beginDocument();
84 / 90
2016 Star Micronics. All rights reserved.
void endDocument()
Argument
Return value
Example
using StarIO_Extension;
//In starLine emulation case
ISCBBuilder builder = SCBFactory.createBuilder(Emulation.StarLine);
builder.beginDocument();
await builder.appendBitmapAsync(logoData, false, 576, true, SCBBitmapConverterRotation.Normal);
builder.appendCutPaper(SCBCutPaperAction.PartialCutWithFeed);
builder.appendPeripheral(SCBPeripheralChannel.ChannelNo1, 200);
builder.endDocument();
85 / 90
2016 Star Micronics. All rights reserved.
Description
Type
action
StarIO_Extension.SCBCutPaperAction
Return value
Example
using StarIO_Extension;
//In starLine emulation case
ISCBBuilder builder = SCBFactory.createBuilder(Emulation.StarLine);
builder.beginDocument();
await builder.appendBitmapAsync(logoData, false, 576, true, SCBBitmapConverterRotation.Normal);
builder.appendCutPaper(SCBCutPaperAction.PartialCutWithFeed);
86 / 90
2016 Star Micronics. All rights reserved.
Description
Type
channel
StarIO_Extension.SCBPer
ipheralChannel
Argument
Description
Type
time
Specifies the energizing time (ms) and the delay time (ms) for
activating the external device
time [milliseconds]: (101270)
StarIO_Extension.SCBPer
ipheralChannel
Return value
Example
using StarIO_Extension;
//In starLine emulation case
ISCBBuilder builder = SCBFactory.createBuilder(Emulation.StarLine);
builder.beginDocument();
await builder.appendBitmapAsync(logoData, false, 576, true, SCBBitmapConverterRotation.Normal);
builder.appendCutPaper(SCBCutPaperAction.PartialCutWithFeed);
builder.appendPeripheral(SCBPeripheralChannel.ChannelNo1, 200);
87 / 90
2016 Star Micronics. All rights reserved.
Description
Type
bitmapDecoder
Windows.Graphics.Imagin
g.BitmapDecoder
Argument
Description
Type
diffusion
Random dither
true:
Use random dithering
false:
Do not use random dithering
bool
Argument
Description
Type
width
unit
Argument
Description
Type
bothScale
bool
Argument
Description
Type
rotation
Rotation
Normal:
Right90:
Left90:
Rotate180
Do not rotate
Rotate 90 degrees to the right
Rotate 90 degrees to the left
Rotate 180 degrees
Return value
Description
IAsyncAction
StarIO_Extension.SCBBit
mapConverterRotation
Example
using StarIO_Extension;
//In starLine emulation case
ISCBBuilder builder = SCBFactory.createBuilder(Emulation.StarLine);
builder.beginDocument();
await builder.appendBitmapAsync(logoData, false, 576, true, SCBBitmapConverterRotation.Normal);
88 / 90
2016 Star Micronics. All rights reserved.
IBuffer getBuffer()
Argument
Return value
Example
using StarIO_Extension;
//In starLine emulation case
ISCBBuilder builder = SCBFactory.createBuilder(Emulation.StarLine);
builder.beginDocument();
await builder.appendBitmapAsync(logoData, false, 576, true, SCBBitmapConverterRotation.Normal);
builder.appendCutPaper(SCBCutPaperAction.PartialCutWithFeed);
builder.appendPeripheral(SCBPeripheralChannel.ChannelNo1, 200);
builder.endDocument();
IBuffer buffer = builder.getBuffer();
89 / 90
2016 Star Micronics. All rights reserved.
Description
StarLine
StarPRNT
StarGraphic
StarLine emulation
StarPRNT emulation
StarGraphic emulation
Namespace
StarIO_Extension
Description
Normal
Right90
Left90
Rotate180
Do not rotate
Rotate 90 degrees to the right
Rotate 90 degrees to the left
Rotate 180 degrees
Namespace
StarIO_Extension
Description
FullCut
PartialCut
FullCutWithFeed
PartialCutWithFeed
Namespace
StarIO_Extension
Description
ChannelNo1
ChannelNo2
Namespace
StarIO_Extension
90 / 90
2016 Star Micronics. All rights reserved.
URL: http://www.starmicronics.com/support/