Hello Javier,
In my case, I´m printing several files, 100, 150, 200, ...
I have a list of pdf files, and for each pdf I execute the command:
acrord32.exe /h /p d:\mypdfX.pdf
The error is the following: acrobat print the documents in other order
than I have executed, and don´t print some documents ...
Any ideas?
The problem is that Adobe has change the behavior of Acrobat Reader! If you
are using a version later than 4.0 then the /p flag is not performed.
Acrobat will 'never' exit and is reused for the next document you print.
Only one document can be printed at a time. This explains the error that
some documents are not printed. Your command to print is executed when
Acrobat is busy printing and your command is ignored!
The reason for that the documents are printed in a different order on the
printer than you have executed the commands is that you are using a print
queue (which is the normal way of printing in Windows). You are not
printing directly to the printer just to the print queue and then the print
queue will send the documents to the printer, in the order that the print
queue thinks is appropriate.
The only way I have gotten this to work is to use iTextSharp to merge all
the documents into one big document that has all pages in the correct order
and then print this AllInOne document.
I have created a .net Assembly that I can include in any .net project, but
since I did this for the company I work for I need to check with the bosses
if I can share it.
It's really simple to create it yourself. Just go to iTextSharps site and
download the library and the source. then check the sample on merging
pdf-documents...
http://itextsharp.sourceforge.net/
PD: sorry, my inglish is very poor.
su inglés es mucho mejor que mi español ;-)
// Anders