2. How to configuration StarPRNT Application

The Library (StarIOPort.winmd / StarIO_Extension.winmd / SMCloudServices.winmd) is already included when the StarPRNT SDK is loaded; there’s no need to include it again when testing our SDK.

When you are building your own application, it is necessary to add the library into it.

2.1. Add component

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

Note

SMCloudServices Library

You need to add when using Star Micronics Cloud (AllReceipts, etc.) in the application.

2.1.2. Use winmd file

  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
    • SMCloudServices.winmd
  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.

  7. The following construction will be built.

    ../_images/Configuration_Uwp_1.png

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>
../_images/Configuration_Uwp_2.png