Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

HTML Document Print - How to remove header/footer?

Posted on 2002-03-13
4
Medium Priority
?
501 Views
Last Modified: 2007-12-19
Hi,

Okay, I solved the printing issue on HTMLDocument..

DIM rep as HTMLDocument
rep = h.createDocumentFromURL "xyz.html", ""
rep.execCommand "Print"

Fine, the printer setup dialog appears and off it goes. However, extra header/footers are added:

                         Page 1 of 3
....my stuff....

full/path/to/xyz.html          Date

Any ideas on how to prevent this from happening? I am want JUST ...my stuff.. to appear, which is a plain HTML document wrapped in <HTML>...</HTML> tags.

Many thankx in advance,
Mark
0
Comment
Question by:mh2
  • 3
4 Comments
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6860881
I think, you need to read values from registry, change them and restore them on exit.
0
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 800 total points
ID: 6860899
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup]
"header"="&w&bPágina &p de &P"
"footer"="&u&b&d"
0
 
LVL 3

Author Comment

by:mh2
ID: 6863793
Yes!! Success!!

Thank you very much, that worked perfectly. I now get exactly what I want.

I will most likely be posting further questions about manipulating the HTML documents, so keep an eye out for them and you might get alot of points off of me! :)

Thankx agian,
Mark
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6864598
:)))
I will keep my eyes opened!
Thanks for "A" grade.
You could take a look at:
www.angelfire.com/realm/vb-shared/index.html
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

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…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
Suggested Courses

879 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