Skip to Content
0
Former Member
Jul 22, 2013 at 09:16 AM

How to open Internet explorer from SAP B1 like clicking on "Integration Administration".Can any one help me?

35 Views

Hi Experts,

I want to open Internet explorer from SAP Business One Application like clicking on Integration Administration.

When i try to open it,below error i am facing.

"activex control cannot be instantiated because the current thread is not in single threaded apartment"

Dim newThread As Thread = New Thread(AddressOf ThreadMethod)

Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture

newThread.SetApartmentState(ApartmentState.STA)

newThread.Start()

newThread.Join()

'newThread.

'newThread.Sleep(300)

Dim testcontrol As WebBrowser

testcontrol = New WebBrowser()

in the last line i am getting the above mentioned error.

Attachments

IE Error.jpg (15.5 kB)