Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
private string PrintQR(string link)
{
Encoding m_encoding = Encoding.GetEncoding("iso-8859-1");
string buffer = "";
int store_len = (link).Length + 3;
byte store_pL = (byte)(store_len % 256);
byte store_pH = (byte)(store_len / 256);
buffer += m_encoding.GetString(new byte[] { 29, 40, 107, 4, 0, 49, 65, 50, 0 });
buffer += m_encoding.GetString(new byte[] { 29, 40, 107, 3, 0, 49, 67, 8 });
buffer += m_encoding.GetString(new byte[] { 29, 40, 107, 3, 0, 49, 69, 48 });
buffer += m_encoding.GetString(new byte[] { 29, 40, 107, store_pL, store_pH, 49, 80, 48 });
buffer += link;
buffer += m_encoding.GetString(new byte[] { 29, 40, 107, 3, 0, 49, 81, 48 });
return buffer;
}
private EventProcessingInstruction QRCodeApplication_OpsCustomReceiptEvent(object sender, OpsCustomReceiptEventArgs args)
{
byte[] youESCCommand = new byte[] { };
args.TrailerAction = CustomPrintType.Append;
var code = Encoding.UTF8.GetString(youESCCommand);
args.CustomTrailer = (object)new ArrayList(1) { (object)code };
return EventProcessingInstruction.Continue;
}