Printing PDF Files from Delphi
Posted on 2003-03-18
I'm back again with another question. This time I would like to know if it is possible to print lets say 20 copies of a PDF file without having to Load up Acrobat Reader, load and print the File, and then close Acrobat reader again 20 times in a row.
I already tried using the ShellExecute but that takes way too long, since sometimes users will need to print 100 up to 500 copies of a document. So Opening the Reader, loading the file, printing, closing the reader is kinda out of the Question.
I also tried using the ActiveX thing, but only had that one working when I placed it on a form at designtime. Since this will be a background process, I tried using a Datamodule, but you can't drop the ActiveX on a DataModule. I also tried to create it at Run-Time, but that didn't seem to be giving any results neither.
Anyone knows how I could solve this ?
Thanks a lot in advance.