| |
Ashapadmanabhan
Posts: 4
Score: 0
Joined: 9/21/2008
Status: offline
|
Hi All, I want to display an image in Internet explorer window in Vista. Following is the sample script I have created.In this text message is coming properly.But image is not displaying properly. Please correct me if i am wrong and help me to display the image using img tag. '***************************************** set obj = CreateObject("Wscript.Shell") Dim objIE Set objIE = CreateObject("InternetExplorer.Application") objIE.Navigate "about:blank" objIE.ToolBar = False objIE.Width = 512 objIE.Height = 250 path = "c:\sample.jpg" objIE.Document.Body.InnerHTML = "<div style=""font-family: Arial;"">" & vbCrLf _ & "<p>My Picture </p>" & vbCrLf _ & "<img src = """& path &""">" objIE.Visible = True '********************************** Regards, Asha
|
|