I need to display the data in VB screen. I am using WebBrowser control.
Then I am using this command:
m_oFrm.WebBrowser1.Document.Write (SHtml)
to display the output on screen.
Statement is going fine in debug mode but in EXE/DLL it's giving error
Object or Variable not Set
I used an alternative option as:
Dim objHTMLDocScore As MSHTML.HTMLDocument
Set objHTMLDocScore = m_oFrm.WebBrowser1.Document
And then
Document.Write (SHtml)
But I am getting the error while compiling as
Function or interface marked as restricted, or the function uses an automation type not supported in Visual Basic
I can see there is a question in StackOverflow for error message "Function or interface marker as restricted, or the function uses an automation type not supported in Visual Basic" but I am not able to understand the same.
I am using the Internet Explorer version 8.