Solved

HTML reader

Posted on 1998-10-29
6
191 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
[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
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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 

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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
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…

729 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