2. How to add the library

2.1. Adding the library to project

Library supports Nuget package and winmd file.Please link library that suits your application configuration.

Please download and confirm the newest SDK and Library from our Global Support Site.

2.1.1. Use Nuget package

  1. Install the following packages.

2.1.2. Manually adding the link

  1. In Solution Explorer, select the project.

  2. On the Project menu, click Add Reference. The Add Reference dialog box opens.

  3. Click Reference Button and select the libraries in the libs folder of StarPRNT SDK, then click OK.

    Library
    • StarIOPort.winmd

    • StarIO_Extension.winmd

    • StarIODeviceSetting.dll

    Note

    If using a StarIODeviceSetting.dll, add also a StarIOPort.winmd in the project reference.

  4. To print a QR code with TSP100 series printers, the setting to use Zxing.Net is required.

  5. On the Project menu, click Manage NuGet Packages. The Manage NuGet Packages dialog box opens.

  6. Search ZXing.Net, click Install.

2.2. Edit Package.appxmanifest

  1. Open [Package.appxmanifest] in project with the form of code.

  2. Allow to use the LAN printer and Bluetooth Printer with application by addition of the following description to [Package.appxmanifest].

<Capabilities>
    <Capability Name="internetClient" />
    <Capability Name="privateNetworkClientServer" />
    <DeviceCapability Name="webcam" />
    <DeviceCapability Name="microphone" />
    <DeviceCapability Name="bluetooth" />
</Capabilities>