Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make a preview of an html

Status
Not open for further replies.

kruxty

Programmer
Jul 17, 2001
197
PT
I dont know if this is possible...
What i want to do is make a preview of an html file that is saved in my hard-drive!
This preview will show me everything, such as buttons, text, blablabla!
Doesn't need to work as a web page, just show it like an image!
Is this possible? If it is, how can i do it?
Tkx to all, Kruxty :eek:)
 
What about including the Web Browser control in your app or Shelling out to to the browser to display the page.
Code:
    Dim lngReturn As Long
    lngReturn = Navigate("[URL unfurl="true"]http://Vbcompare.com")[/URL]
'======================
Private Declare Function ShellExecute Lib "shell32.dll" _
    Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation _
    As String, ByVal lpFile As String, ByVal lpParameters As String, _
        ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long


Public Function Navigate(strUrl As String) As Long
    Dim hWnd As Long
    Navigate = ShellExecute(hWnd, vbNullString, strUrl, vbNullString, _
                    vbNullString, vbNormalFocus)
End Function
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top