Solved

Printing web pages

Posted on 1999-01-14
5
346 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

821 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