private void PrintHistory() { nGXPrinter.PrintText("\n"); nGXPrinter.PrintImage(GetBitmapFromView(linearLayout)); nGXPrinter.PrintText("\n"); PrintListView(); nGXPrinter.PrintText("\n\n\n"); PrintAgain(); }
private void PrintFromPrinter() { if (nGXPrinter != null) { nGXPrinter.PrintText("\n\n"); nGXPrinter.PrintImage(GetCanvas(layMainLinear, layMainScroll.GetChildAt(0).Height, layMainScroll.GetChildAt(0).Width)); nGXPrinter.PrintText("\n\n\n\n\n"); PrintAgain(); // layScrollview.Visibility = ViewStates.Gone; } else { Toast.MakeText(this, "Printer not connected", ToastLength.Short).Show(); } }
private void AgainPrint() { if (nGXPrinter != null) { //nGXPrinter.PrintText(textName.Text); nGXPrinter.PrintImage(GetCanvas(layoutMain, mainScrollView.GetChildAt(0).Height, mainScrollView.GetChildAt(0).Width)); nGXPrinter.PrintText("\n"); } else { Toast.MakeText(this, "Printer not connected", ToastLength.Short).Show(); } }