Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

Printing batch of invoices

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike P - 10 Oct 2007 15:04 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.