You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i print first time it get correct result on BPOS T2 bluetooth80mm printer second time it get large sized font.
when i power off and on again the print will perfect at firs time after that it get large sized.
var printerSize = '3';
PaperSize paper = PaperSize.mm80;
if (printerSize == "2") {
paper = PaperSize.mm58;
} else if (printerSize == "3") {
paper = PaperSize.mm80;
} else if (printerSize == "4") {
paper = PaperSize.mm112;
} else if (printerSize == "5") {
paper = PaperSize.mm58;
}
PosPrintResult res =
await printerManager.printTicket(await test(paper));
}
Future<List> test(PaperSize paper) async {
var profile = await CapabilityProfile.load();
final Generator ticket = Generator(paper, profile);
List bytes = [];
// printerSize = '3';
when i print first time it get correct result on BPOS T2 bluetooth80mm printer second time it get large sized font.
when i power off and on again the print will perfect at firs time after that it get large sized.
code :
{
.....................
printerManager.selectPrinter(printer);
PosPrintResult res =
await printerManager.printTicket(await test(paper));
}
Future<List> test(PaperSize paper) async {
var profile = await CapabilityProfile.load();
final Generator ticket = Generator(paper, profile);
List bytes = [];
// printerSize = '3';
} catch (e, s) {
bytes += ticket.feed(2);
return bytes;
}
}
1st ok
https://drive.google.com/file/d/154gUgMsWhcAe9SPWBErYS_RC0B1cvNBK/view?usp=drive_link
2nd
https://drive.google.com/file/d/1ykj2S2W9EEkByZeAa0RgZIuAvC-7wHnY/view?usp=drive_link
The text was updated successfully, but these errors were encountered: