Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


integrating html with vb script

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,65319
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> integrating html with vb script
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 integrating html with vb script - 10/20/2008 3:17:30 AM   
  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
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> integrating html with vb script Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts