Urgent::Print PDF File using InternetExplorer

Hi Group,

I am new to this group.
I am developing Vb application in that user can import
huge amount of "PDF" files. I want to give solution to
print "PDF" Files without interaction of user.
Just user select condition and let 10 pdf selected in
that criteria then these 10 files should be print
without any user interation .
I use internetexplorer to print HTML files and  pdf files
in visual basic.Create internetexplorer object and then use its "EXECWB" method for invoke its Print method.It is always prompting Print dialog.Which I don't want.Is there any method to get rid of Print dialog.

This is code:

********************start the
Dim Ie1 as Object
Set Ie1 = Nothing
'creating object of internetexplorer
Set Ie1 = CreateObject("InternetExplorer.Application")
'hiding it because don't want to show user
Ie1.Visible = False
'navigating the PDF File
Ie1.Navigate Filename
'Apply this loop to ready the internetexplorer to
receive print command
Do While Ie1.QueryStatusWB(OLECMDID_PRINT) <>
'do windows stuff
For intCount = 1 To 15000
'Calling the print method with options do not prompt
to user for selection of printer from print dialog
'because pdf document take time to load so for fullly
load use to sleep
Sleep 30000
'quiting from internet explorer
Set Ie1 = Nothing
*************end of code*******************

Is anyone knows about it?
Or any alternate solution for this Problem.


Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Well you might already know this... I think the problem might be reading the pdf format.

Dim HWidth, HHeight, I, Msg   ' Declare variables.
   Msg = "This is printed on page"
   For I = 1 To 2   ' Set up two iterations.
      HWidth = Printer.TextWidth(Msg) / 2   ' Get half width.
      HHeight = Printer.TextHeight(Msg) / 2  ' Get half height.
      Printer.CurrentX = Printer.ScaleWidth / 2 - HWidth
      Printer.CurrentY = Printer.ScaleHeight / 2 - HHeight
      Printer.Print Msg & Printer.Page & "."   ' Print.
      Printer.NewPage   ' Send new page.
   Next I

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Richie_SimonettiIT OperationsCommented:
Actualy you can read in the MSDN, that Microsoft restricted this option (in Ver IE5 , from security reasons.
insted you can use the Adobe ActiveX Control (pdf.ocx).
Use the src property to Load, and the PrintAll property to print without prompting user.
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Dear avissar
I've rejected your proposed answer as Experts Exchange holds an experiment to work without the answer button.

See: <http://www.experts-exchange.com/jsp/communityNews.jsp>
Paragraph: Site Update for Wednesday, November 06, 2002

By this rejection the Asker will be notified by mail and hopefully he will take his responsibility to finalize the question or post an additional comment.
The Asker sees a button beside every post which says "Accept This Comment As Answer" (including rejected answers) -- so if he/she thinks yours is the best, you'll be awarded the points and the grade.

EXPERTS: I will return in seven days to close this question.
Please leave your thoughts and recommendations here


Thanks !

Experts Exchange Moderator

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in Community Support that this question is:
- points to DandL
Please leave any comments here within the
next seven days.
Finalized as proposed


Community Support Moderator
Experts Exchange

The so-called accepted solution is NOT a valid solution to the original question. I subscribed to your service because you claim to have a valid solution to this question.

Well, if you can't do better than this, then so long...
Richie_SimonettiIT OperationsCommented:
well, so many time since i saw this question for the last time.
Well, texn, i am not answer your q nor do a support to the site since they limited my access to it since i not answer Qs for a long time (it doesn´t matter HOW MUCH time you already spent answer here in the past!!!)
Suerely, it would be an on line "pdf  creator" at internet that we could call with some lines of code.
Anyway, if ypu have pdf creator installed (which is GNU so it could be installed in any computer) you could print the document as long as PDF creator is the default printer on target system.
Hope it helps
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.