VB.Net and IAccess Client

Paul Yoskowitz
Paul Yoskowitz used Ask the Experts™
on
I need to write a screen scraping program for an IBM 5250 session, using VB.Net and IBM iAccess Client Solution. I have not been able to find any information on this. Can anyone help me with a few links to the needed DLLs and code examples for this?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Theo KouwenhovenApplication Consultant
Commented:
Hi Paul,

I'm not sure that you can do that from VB.Net,
I can do it from a VB-script macro within my ClientAccess emulation  

Something like:
autECLSession.SetConnectionByName(ThisSessionName)

TextField = autECLSession.autECLPS.GetText(line, pos, length)


Links about Access Class Library:
https://www.ibm.com/support/knowledgecenter/en/SSEQ5Y_5.9.0/com.ibm.pcomm.doc/books/html/host_access08.htm

See also:
https://www.experts-exchange.com/questions/21686380/Script-Problem.html
and
https://www.experts-exchange.com/questions/21776110/Macro-question.html
VP Technology / Senior Consultant
Commented:
The newer IBM i Access Client Solution (ACS) product provides the same basic API as IBM i Access for Windows.  5250 emulator automation is provided by EHLLAPI or HACL automation.  From .NET, you will want to use EHLLAPI.  This article contains an explanation of basic capabilities and tools, and links to API documentation, examples, etc:

http://www-01.ibm.com/support/docview.wss?uid=nas8N1022547

Please note that the basic version of ACS that is freely downloadable does not include the Windows 5250 automation components.  For that, you need to obtain the ACS Windows Application Package via ESS (IBM or your Business Partner may also be able to help you obtain this if you don't have ESS).  This support article discusses options for obtaining the various ACS components and licensing requirements:

http://www-01.ibm.com/support/docview.wss?uid=nas8N1010355

Some example code:

https://www.codeproject.com/Articles/9615/Using-EHLLAPI-in-C
Paul YoskowitzSystems Developer

Author

Commented:
I had the files from IBM. what i was missing was the code here

https://www.codeproject.com/Articles/9615/Using-EHLLAPI-in-C

that Gary had suggested.

now, what i had to do was rebuild it as a VS2017, 32 bit, VB.NET DLL and app. after a few more google searches and about a day or 2, i got it to work.

thanks for the help and suggestions!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial