-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not work "Cut" on QL 810w #13
Comments
You are right @kmlpandey77 I tried what you have in your initial comment and any Text that is added gets printed on the same label. ( Initially test on the left hand side. ) I wrote a
Which resulted in the labels on the right hand side of my image. I'm sure @RamyTalal has a better solution for us than my |
I think it's nicer to flush in the |
That's even better! |
Thank you @ntaylor-86, I dont get but I get a solution for now, (Using dash [------]) $printer->addCommand(new Command\Text("Order No: " . $sale->getOrderNumber() . "\n"));
foreach ($sale->items as $item) { //$sale->item is food list
for ($i=0; $item->qty > $i; $i++) {
$printer->addCommand(new Command\Text("----------------\n")); // love to use CUT::HALF or CUT:: CNAIN instead of dash [-----]
$printer->addCommand(new Command\Text($item->item_title . "\n"));
}
}
$printer->printLabel(); |
@kmlpandey77 from your photo, is your end goal is to have 6 different labels? |
@RamyTalal is the Cut command meant to work how @kmlpandey77 has implemented there? |
@ntaylor-86 That works. |
@ntaylor-86 can you share the content of your flushCommands ? |
LoL. It's been two and a half years since I looked at this. I don't remember off the top of my head, but when I get a second I'll check it out. |
You can see the command implemented in this commit: ntaylor-86@838973b |
I have use QL-810w, but "CUT " Function does not work. It's cut at last.
The text was updated successfully, but these errors were encountered: