Controlling Barcode Label Software Using C Sharp and VB - Net (English)
Controlling Barcode Label Software Using C Sharp and VB - Net (English)
White Paper
Contents
Overview of BarTender .NET SDKs ................................................ 3
What you get .................................................................................................3
Page 2
Sample applications with source code and Visual Studio project files are included
and can be run from the Windows Start menu. Learn by compiling and stepping
through each sample application, or copy the code to your application and
customize it as desired.
Extensive Documentation
Although the BarTender .NET SDKs are supported by a truly exhaustive help
system, the following sequence demonstrates how the "Intellisense" feature in
Microsoft's Visual Studio works with the BarTender SDKs to help you use the
available library functions without your having to look them up.
Page 3
The BarTender SDKs work with Microsofts Visual Studio to help you rapidly build your code
expressions. In this example, starting above, adding the period to the end of the labelFormat object
causes the list of available methods and attributes to be displayed.
Next, choosing the Print method causes Print to be added to the labelFormat object. A pop-up
tipthen lets you examine the different sets of arguments available for this method.
Finally, you finish your line of code by entering expressions that comply with the requirements of one
of the available list of arguments.
Page 4
The Print SDK provides a managed .NET interop wrapper for BarTenders
unmanaged ActiveX Automation interface. This gives you prewritten, easy-to-use
methods for controlling common BarTender functions such as:
BarTenders Print Server SDK is built on top of the Print SDK and adds the
advanced functions required by developers to programmatically manage highvolume, centralized label printing using BarTender. The increased scalability and
the addition of task-based queue management make it easier to control large and
complex label jobs. For example, printing a large number of labels is sometimes
easier if you launch and manage multiple instances of the BarTender application at
the same time. The Print Server SDK allows you to do this easily, adding more
instances of BarTender as print demand increases.
Understanding BarTender Task Queues
When you use BarTender stand-alone, you typically sit at a computer and manually
execute BarTender tasks such as printing a label format, exporting a label, and running
a BarTender XML script. In contrast, when you control BarTender programmatically
using the Print Server SDK, your programs submit these tasks to a queue where they
wait to be processed by one or more instances of BarTender. The ability of the Print
Server SDK to rapidly queue tasks as fast as your applications can create them and
Page 5
Page 6
After installing the BarTender .NET SDKs, you can view the BarTender Print SDK
online help and examples of how to use the available classes and methods. You can
easily copy and paste any code example in the SDK documentation into your
programs.
Page 7
Companion Applications
Librarian
Recent Upgrades
Integration Overview
Commander
Commander Examples
Weighing Scales
Silent Install