Click here to Skip to main content
15,906,558 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: variable pointers in .net Pin
Colin Angus Mackay26-May-04 13:38
Colin Angus Mackay26-May-04 13:38 
GeneralCheck if string is valid using regular expresion Pin
viettho26-May-04 12:43
viettho26-May-04 12:43 
GeneralRe: Check if string is valid using regular expresion Pin
Mike Ellison26-May-04 18:44
Mike Ellison26-May-04 18:44 
GeneralRe: Check if string is valid using regular expresion Pin
Anonymous27-May-04 13:10
Anonymous27-May-04 13:10 
GeneralPrinting Multiple documents Pin
Thangavel26-May-04 4:07
Thangavel26-May-04 4:07 
GeneralRe: Printing Multiple documents Pin
Dave Kreskowiak26-May-04 4:11
mveDave Kreskowiak26-May-04 4:11 
GeneralRe: Printing Multiple documents Pin
Thangavel26-May-04 4:41
Thangavel26-May-04 4:41 
GeneralRe: Printing Multiple documents Pin
Dave Kreskowiak26-May-04 5:05
mveDave Kreskowiak26-May-04 5:05 
You're printing all of these nearly at one and depending on the Print routines for each to do the printing for you. Not a problem really, it's what anyone would do.

The problem your running into is that Word uses a background Print on a seperate thread. Your also using ShellExecute to Print .PDF files, which means Acrobat has to load, load it's plugin's and the load the document, then print. Takes a while...

With all the printing being done on seperate threads, it's, literally, a race to see which application can start it's print job first since they are all going at the same time.

The bottom line is, with the methods that you've chosen, there is no way to print the jobs out in any controlled order. You would have to either monitor the PrintQueue to catch when the job starts before firing off the next (not easy!), or you would have to monitor each application to see when it starts the actual printing (not easy!), or you could drop Thread.Sleep(oh I don't know, say5000)'s between each print job, thereby putting 5 seconds between the launch of each print job.

The final method works, is easy to implement, BUT (a very big BUT here!) It in no way guarantee's that the print jobs will come out in the order you launched them. The bottom line is there is no easy and reliable method to get the print jobs to come out in the order you want them.


RageInTheMachine9532
"...a pungent, gastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Printing Multiple documents Pin
Thangavel26-May-04 19:07
Thangavel26-May-04 19:07 
GeneralRe: Printing Multiple documents Pin
Dave Kreskowiak27-May-04 2:44
mveDave Kreskowiak27-May-04 2:44 
GeneralRe: Printing Multiple documents Pin
Thangavel28-May-04 23:24
Thangavel28-May-04 23:24 
GeneralRe: Printing Multiple documents Pin
Dave Kreskowiak29-May-04 14:16
mveDave Kreskowiak29-May-04 14:16 
GeneralDataGridTableStyle Pin
joypreeti26-May-04 3:28
joypreeti26-May-04 3:28 
GeneralRe: DataGridTableStyle Pin
Werner Vos26-May-04 22:10
Werner Vos26-May-04 22:10 
GeneralRemote Events... Pin
waffleman26-May-04 2:48
waffleman26-May-04 2:48 
GeneralRe: Remote Events... Pin
Dave Kreskowiak26-May-04 3:47
mveDave Kreskowiak26-May-04 3:47 
GeneralRe: Remote Events... Pin
waffleman27-May-04 8:15
waffleman27-May-04 8:15 
GeneralRe: Remote Events... Pin
Dave Kreskowiak27-May-04 9:40
mveDave Kreskowiak27-May-04 9:40 
GeneralRe: Remote Events... Pin
waffleman1-Jun-04 3:13
waffleman1-Jun-04 3:13 
Generalmessanger password Pin
ahmad_yossef25-May-04 23:29
ahmad_yossef25-May-04 23:29 
GeneralRe: messanger password Pin
Dave Kreskowiak26-May-04 0:45
mveDave Kreskowiak26-May-04 0:45 
GeneralRe: messanger password Pin
Aaron Eldreth26-May-04 4:03
Aaron Eldreth26-May-04 4:03 
Generalit's possible....... Pin
Night_Soul25-May-04 22:55
Night_Soul25-May-04 22:55 
GeneralRe: it's possible....... Pin
Dave Kreskowiak26-May-04 0:43
mveDave Kreskowiak26-May-04 0:43 
GeneralRe: it's possible....... Pin
Anonymous26-May-04 4:18
Anonymous26-May-04 4:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.