Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
1.30/5 (3 votes)
See more:
Good morning. Regarding using automation to the BlueZone mainfrmae using a smart client application written in C#, I got the following response from the folks at Rocket Software:

Yes, we have customers doing it, the BlueZone automation objects use COM. C# has a way of generating wrapper classes to invoke COM objects.

Has anyone successfully been able to do this, and do you have any code snippets?

Thank you, WHEELS
Posted
Updated 22-Jun-18 4:26am
Comments
[no name] 21-Sep-12 7:50am    
So why are you not asking the people at Rocket Software this? It's their product after all...
Wheels012 21-Sep-12 7:54am    
Thank you for responding Wes. I did ask them, and I included the response in my original post.
[no name] 21-Sep-12 7:57am    
Yes... I clearly see that. Why did you not ask them for a code sample? It's their product and they should be able to provide you an example of how to use their product. If they can't or won't then I would be looking for a new vendor.
Wheels012 21-Sep-12 8:06am    
Although I didn't include that in my original posting, I did ask for a code sample. This is where they said they were aware of people doing it, but didn't have any snippets. They sent me a 6 MB file with mostly VBScript. I and others at my company, have used Excel - VBA to successfully automate to BlueZone.
JohnDonnelly 13-Feb-16 18:24pm    
Wheels,

I know this is an old post and you have probably moved on but if you still want some help on this let me know.

I'm working on a project right now with BlueZone Host Automation Object.

1 solution

public class clsBZ
    {
        private string _usr;
        private string _pwd;
        public BZWHLLLib.WhllObj Session;
        private string _sessionID;


        private void startSession()
        {
            if (Session == null)
            {
                Session = new BZWHLLLib.WhllObj();
                Session.Connect(_sessionID);
                
            }
        }

        public string getValue(int row, int colm, int valSize)
        {
            Object tmp = "";
            Session.ReadScreen(out tmp, valSize, row, colm);
            return tmp.ToString();
        }

        public void putValue(string value, int row, int colm)
        {
            Session.WaitReady(0, 51);
            Session.SetCursor(row, colm);
            Session.SendKey(value);
            Session.WaitReady(0, 51);
        }

    }
 
Share this answer
 
Comments
Dave Kreskowiak 22-Jun-18 13:16pm    
Just posting an explained code snippet is not an answer.

Also, this is question from SIX YEARS AGO.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900