The folllowing code works fine in VB 6.0
dim str as String
dim obj as New mshtml.HTMLDocument
str="<html><body><p>Test</p></body></html>"
obj.body.innerHTML = str
When i do the same thing in VB.Net i am getting the following error:
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
What is the error?how can i do this in VB.Net?
dim str as String
dim obj as New mshtml.HTMLDocument
str="<html><body><p>Test</p></body></html>"
obj.body.innerHTML = str
When i do the same thing in VB.Net i am getting the following error:
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
What is the error?how can i do this in VB.Net?