I have an array of invoice keys that I need to loop through, display in
a window on screen, then auto print, before looping to the next one,
again displaying on screen, and then auto printing.
I have my array sorted, and I am planning on building up the HTML
invoice using a StringBuilder and then displaying it via a div
InnerHtml. But how do I auto print them, and then repeat the process?
Eliyahu Goldin - 10 Oct 2007 15:16 GMT
All standard printing procedures will open browser's printing dialog. You
need a 3rd party control to print automatically.

Signature
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
>I have an array of invoice keys that I need to loop through, display in
> a window on screen, then auto print, before looping to the next one,
[quoted text clipped - 5 lines]
>
> *** Sent via Developersdex http://www.developersdex.com ***
Mike P - 10 Oct 2007 15:38 GMT
Isn't it possible to execute a Javascript window.print() on an event
somewhere?
Eliyahu Goldin - 10 Oct 2007 15:49 GMT
It certainly is but it will still activate the Print dialog.

Signature
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
> Isn't it possible to execute a Javascript window.print() on an event
> somewhere?
>
> *** Sent via Developersdex http://www.developersdex.com ***
Roland Dick - 11 Oct 2007 04:34 GMT
Hi Mike,
Mike P schrieb:
> I have an array of invoice keys that I need to loop through, display in
> a window on screen, then auto print, before looping to the next one,
> again displaying on screen, and then auto printing.
how about using a reporting utility such as Crystal Reports (I think a
free version comes with VS) to create a multi-page document; then the
user can print all pages at once. (And I think you can actually make it
print by code as well, at least this applies to the Winforms control).
Hope this helps,
Roland