Solved

Printing web pages

Posted on 1999-01-14
5
343 Views
Last Modified: 2008-02-01
Help! I have a vb event timer that loads a web page into
a web browser control, then prints the web page using:  
WebBrowser1.ExecWB OLECMDID_PRINT,OLECMDEXECOPT_DONTPROMPTUSER
(during the download complete event)

This is done at different times of the day. My problem is that it prints multiple copies of the last loaded page before it prints the current page.  
0
Comment
Question by:joerivera
  • 3
5 Comments
 

Author Comment

by:joerivera
ID: 1456457
Edited text of question
0
 

Author Comment

by:joerivera
ID: 1456458
Adjusted points to 25
0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1456459
You can tell the webbrowser to not use the cache. Maybe that helps.
0
 

Author Comment

by:joerivera
ID: 1456460
I've looked through the SHDocVwCtl library with the object browser, but could not find any way to do that? Am I missing something?
0
 

Accepted Solution

by:
alex_dagger earned 20 total points
ID: 1456461
why don't you try,
printer.print webrowser  ?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now