General discussion

Locked

Background printing in VB

By pjrs ·
How to carryout a background printing process in VB?
Also I wanna know the no of printing processes running or some way to control the no. of print jobs at any moment to be exactly same as the no. of printers available at that time.

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Background printing in VB

by Peter Ritchie In reply to Background printing in VB

Background printing (especially in VB) is complicated. Basically, you have to move your printing code to a background thread.

But, since that code can be running in the background you either have to lock down all the data that it's using as the basis for the print-out or make a copy of it all (a copy of the current "document"--which is what Word does). The first option is someone redundant because you end up locking the user out of the application while printing--defeating the purpose of background printing.

Checkout the Win32 API function CreateThread.

There's an MSJ article on multithreaded VB applications called "Ingenious ways to implement multiple threads in Visual Basic 5.0" that can be found at http://www.microsoft.com/MSJ/0897/multithreading.htm that may help you get started.

Collapse -

Background printing in VB

by pjrs In reply to Background printing in VB

Poster rated this answer

Collapse -

Background printing in VB

by pjrs In reply to Background printing in VB

This question was closed by the author

Back to Web Development Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums