UniPRT SDK  v1.0.0.0
UniPRT.Sdk.Utilities.Utilities Class Reference

Commonly used services that allow for "one liner" or as close to "one liner" service as possible. More...

Static Public Member Functions

static void SendPrintFile (string ipAddress, string fileName)
 Send file to printer's data port. fileName must include the full file name and path.
 
static void SendPrintString (string ipAddress, string data)
 Send string data to printer's data port.
 

Detailed Description

Commonly used services that allow for "one liner" or as close to "one liner" service as possible.

Services such as sending a print job, getting printer status.

Remarks
This is where the services that can be achieved with one liners go.
For example:
  • Send a print job.

Examples

Send print job

using System;
using System.IO;
using System.Text;
namespace OnelinerSnippet
{
{
public static void MainSendPrintFile(string[] args)
{
string ptrIp = "192.168.1.53";
string fileToSend = @"C:\testFiles\Hello.pgl";
Utilities.SendPrintFile(ptrIp, fileToSend); // Using SDK Utilties to send print job
}
}
}


UniPRT.Sdk.Utilities
Definition: Utilities.cs:8
UniPRT
Provide support for different communication interfaces/ports.
Definition: Communication.cs:9
UniPRT.Sdk.Utilities.Utilities.SendPrintFile
static void SendPrintFile(string ipAddress, string fileName)
Send file to printer's data port. fileName must include the full file name and path.
Definition: Utilities.cs:91
UniPRT.Sdk
Definition: Communication.cs:9