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
Solved

HTML reader

Posted on 1998-10-29
6
189 Views
Last Modified: 2013-12-26
Is there in VB6 any control that read HTML code and show the HTML file like NETSCAPE/EXPLORER?
0
Comment
Question by:ppaulinolopes
6 Comments
 
LVL 2

Expert Comment

by:kswinney
ID: 1488031
There is, but there are some limitations.  If you load the component "Microsoft Internet Controls" there is a browser control (the little world icon).

However, the browser control requires the DLLs that Microsoft Internet Explorer uses.  To distribute an application that uses the control, you must require your user to have Internet Explorer loaded on the machine.

Hint:  Use 'SendKeys "^P"' to print the contents of the control (it's not documented).

HTH.
0
 

Author Comment

by:ppaulinolopes
ID: 1488032
Okay, this control real works as an html reader...

But, please, how can I print it contents? How do I use this 'SendKey "^P"' command?

Thanks for any help!
0
 
LVL 1

Expert Comment

by:cvidler
ID: 1488033
By directly using the shdocvw.dll file (add to references) you can use the same browser control as IE, although with more advanced features then the one in the Internet Controls ActiveX control.
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:ppaulinolopes
ID: 1488034
I'm ready using this dll. Choosing "Microsoft Internet Control" in field "Components" of VB 6.0 this dll (shdocvw.dll) is already called. But I still don't know how to print it contents.
0
 
LVL 1

Expert Comment

by:MAVERICK
ID: 1488035
I made a APP which colored the TAGs for a HTML file .,..... with some work it could be converted to its own activeX control... that would give a source code window for a HTML file...

Jon


0
 
LVL 1

Accepted Solution

by:
vignola earned 200 total points
ID: 1488036
webbrowser.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
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…

789 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