I am currently using .NET MAUI Blazor Hybrid to create an app where users can print filled out receipts. The issue is that after I hit either print or cancel, I get the following error:
Received unexpected acknowledgement for render batch 3
I'm not quite sure what to try to fix it. I did try just the following in the js script:
var t_divContents = document.getElementById("PrintDivision").innerHTML;
var headstr = "<html><head><title></title></head><body>";
var footstr = "</body>";
document.body.innerHTML = headstr + t_divContents + footstr;
window.print();
window.close();
which works in that it doesn't cause an error, but it means my page is now just the specific content I wanted and nothing else.
Any help would be greatly appreciated.