The JavaScript command "print()" will print the page. I guess you can also print an invisible page too using an iframe:
https://developer.mozilla.org/en-US/doc ... e/Printing
So from what I can tell you can snapshot the canvas and create a new page with JavaScript that has the snapshot red image and print it. To center the image on the page you'd use css as I understand it.
At least that's the right direction to start tinkering.
Thanks for the suggestions
R0J0hound
I tried to follow the
Magistross suggestion in this post: how-do-i-send-content-to-the-user-s-printer-from-the-layout_t110978?start=20
"var iframe = document.getElementById(""iframe"");
if(!iframe) iframe = document.createElement(""iframe"");
iframe.frameBorder=0;
iframe.width=""0px"";
iframe.height=""0px"";
iframe.id=""iframe"";
iframe.setAttribute(""src"", ""about:blank"");
document.body.appendChild(iframe);
var image = new Image(); image.src = """ & CanvasSnapshot & """; $(""#iframe"")[0].contentWindow.document.open(); $(""#iframe"")[0].contentWindow.document.appendChild(image); $(""#iframe"")[0].contentWindow.document.close();
window.frames[""iframe""].focus();
window.frames[""iframe""].print();"[/code:23vls9ju]
But nothing happened. Maybe because this is an old post.
I cannot understand why the image appears with a large left margin when I try to print it and why it does not fit on the page if I am using an image with 800x600 resolution.