Epson C3400 Technical Reference Guide TRG - Page 132

Sample Program

Page 132 highlights

Sample Program Refer to TM-C3400 sample program to develop the application using this printer. You can use the sample program in the following environment. • c34smp_xxe.msi: 64-bit/32-bit OS • c34smp_xxe.exe: 32-bit OS ❏ Conditions to using TM-C3400 sample program • Use Die-cut Label (108 × 174.8 mm). • Change settings to [Detect Margin Between Labels] on [Media position detection Setting] of the printer driver. • Some sample programs use SNMP TRAP. The Trap function of the printer is set with Epson- Net SDK when installing. Therefore, enable the Trap function before installing the EpsonNet SDK. For details, see "EpsonNet SDK" on page 134. • Languages of C++, C#, VB6.0, VB.NET are provided for the TM-C3400 sample program. • The TM-C3400 sample program cannot be used for other printers than this printer. Operation is checked for the sample program using the EpsonNet SDK; however, EpsonNet SDK does not support C#, VB6.0 and VB.NET officially. Combination with each language is not 100% confirmed. ❏ Structure of TM-C3400 sample program The following is the structure, model and language to use for TM-C3400 sample program. Level Program name Specification Printer Model Language USB Ethernet C++ C# VB.NET VB6.0 Basic Step 1 Printing characters Basic print program. Step 2 Printing bar codes Sets barcode font to use in advance for print program S t e p 3 P r i n t i n g b i t Includes bit map data map data Step 4 Requesting the Checks the printer condition printer status from the before printing and executes application error handling 132

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242

132
Sample Program
Refer
t
o TM-C3400 sample pro
g
ram
t
o develop
t
he appl
i
ca
ti
o
n
u
s
ing
t
h
i
s pr
int
er.
Yo
u
ca
n
u
se
t
he sample pro
g
ram
in
t
he follow
ing
e
n
v
i
ro
n
me
nt
.
• c34smp_xxe.ms
i
: 64-b
it
/32-b
it
OS
c34smp_xxe.exe: 32-b
it
OS
Co
n
d
iti
o
n
s
t
o
u
s
ing
TM-C3400 sample pro
g
ram
Use D
i
e-c
ut
Label (108
×
174.8 mm).
• Cha
ng
e se
tting
s
t
o [De
t
ec
t
Mar
gin
Be
t
wee
n
Labels] o
n
[Med
i
a pos
iti
o
n
de
t
ec
ti
o
n
Se
tting
] of
t
he pr
int
er dr
i
ver.
Some sample pro
g
rams
u
se SNMP TRAP. The Trap f
un
c
ti
o
n
of
t
he pr
int
er
i
s se
t
w
it
h Epso
n
-
Ne
t
SDK whe
n
in
s
t
all
ing
. Therefore, e
n
able
t
he Trap f
un
c
ti
o
n
before
in
s
t
all
ing
t
he Epso
n
-
Ne
t
SDK. For de
t
a
i
ls, see
"Epso
n
Ne
t
SDK" o
n
pa
g
e 134
.
• La
ngu
a
g
es of C++, C#, VB6.0, VB.NET are prov
i
ded for
t
he TM-C3400 sample pro
g
ram.
The TM-C3400 sample pro
g
ram ca
nn
o
t
be
u
sed for o
t
her pr
int
ers
t
ha
n
t
h
i
s pr
int
er.
S
t
r
u
c
tu
re of TM-C3400 sample pro
g
ram
The follow
ing
i
s
t
he s
t
r
u
c
tu
re, model a
n
d la
ngu
a
g
e
t
o
u
se for TM-C3400 sample pro
g
ram.
Operation is checked for the sample program using the EpsonNet SDK; however, Epson-
Net SDK does not support C#, VB6.0 and VB.NET officially. Combination with each lan-
guage is not 100% confirmed.
Level
Program name
Specification
Printer
Model
Language
USB
Ethernet
C++
C#
VB.NET
VB6.0
Basic
Step 1 Printing
characters
Basic print program.
Step 2 Printing
bar codes
Sets barcode font to use in
advance for print program
Step 3 Printing bit
map data
Includes bit map data
Step 4 Requesting the
printer status from the
application
Checks the printer condition
before printing and executes
error handling