Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

HTML Document Print - How to remove header/footer?

Posted on 2002-03-13
4
Medium Priority
?
493 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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

705 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