That did it, thanks so much for the help!

-----Original Message-----
From: [email protected] [mailto:[email protected]] 
Sent: Tuesday, June 26, 2012 2:36 PM
To: [email protected]
Subject: RE:[talkbws] BWS and VB.Net

I have been using BWS in vb.net for years.  It gives you way more power and 
flexibility than VBA.

After adding a reference to the .dll you need to add the imports statements as 
follows

Imports BostonWorkStation70
Imports WS32Lib
Imports WS32Lib.enumScriptError
Imports WS32Lib.enumStreamType

Then create the object
Dim w As New BostonWorkStation

Then all BWS methods are referenced by the object

w.Connect("C:\Program Files\MEDITECH\Workstation3.x\T.exe", stMeditech) 
w.Timeout = 45
        w.Pause("MIS Directories@1,18")
       w.Enter("2") 'login to Test
       
        w.Pause("User ID")
        w.Enter(userNameText)
        w.Pause("Password")
        w.Enter(userPasswordText)
        w.Stable()

Happy coding!


>>> On 6/26/2012 at 11:24 AM, <[email protected]> wrote:
> So you are trying to utilize a visual studio 6 proprietary product in 
> a standalone VB.net project?
> 
> I don't think you are going to have a good time.
> 
> Thank you,
> Mitch Lawrence
> D(58)_D(41)^!
> Report Writer III (Lead Technical Analyst) Enterprise Data Standards - 
> NPR/Automation CHRISTUS Information Management
> [Description: 
> https://encrypted-tbn3.google.com/images?q=tbn:ANd9GcRpCcUdvzSeW2vt39P
> rnC42Y
> XUsTeQtlQm___pTBaL5Dq_w91L85Q] : 
> [email protected]<mailto:Mitchell.Lawrence@CHRISTUSHealth.
> org>
> [Description: 
> https://encrypted-tbn3.google.com/images?q=tbn:ANd9GcQzdLaggPKyfGAZRs9
> PDPrcW
> 0wKUuH3DeE6IhyiEowZBcTlk0Jm] : Mitch
> Lawrence<http://www.facebook.com/Mitchell.D.Lawrence>
> [Description: 
> https://encrypted-tbn0.google.com/images?q=tbn:ANd9GcSfg4SI1n4Wir7gxm4
> 7mC1VK HhbwfMgZYjJD8KEd7T6pDAmBZOE] : Mitchell 
> Lawrence<http://www.linkedin.com/pub/mitch-lawrence/a/9aa/528>
> [Description: Description: cid:[email protected]]
> 
> From: [email protected] [mailto:[email protected]]
> Sent: Tuesday, June 26, 2012 1:21 PM
> To: [email protected]
> Subject: [talkbws] BWS and VB.Net
> 
> Hello,
> 
> Been using BWS with VBA for years and looking to move to VB.net.
> 
> I have referenced Boston Workstation 7.0 main DLL and also tried to 
> reference the Bws6.dll file but that one would not appear in my references.
> With the first one setup, it still does not recognize the typical BWS 
> functions.
> 
> Any thoughts?
> This electronic mail and any attached documents are intended solely 
> for the named addressee(s) and contain confidential information. If 
> you are not an addressee, or responsible for delivering this email to 
> an addressee, you have received this email in error and are notified 
> that reading, copying, or disclosing this email is prohibited. If you 
> received this email in error, immediately reply to the sender and 
> delete the message completely from your computer system.
> 
> ---  To post a message to this list, send mail to: 
> [email protected]<mailto:[email protected]>    You are currently subscribed as: 
> [email protected]<mailto:Mitchell.Lawrence@christus
> health.o
>rg>    Unsubscribe in the customer center on our website: 
> http://www.bostonworkstation.com/customer_center/virtual_user_group_ta
> lk.aspx
> 
> 
> CONFIDENTIALITY NOTICE:   Confidential information, such as identifiable 
> patient health information or business information, is subject to protection 
> under state and federal law.    If you are not the intended recipient of this 
> message, you may not disclose, print, copy or disseminate this information.  
> If you have received this in error, please reply and notify the sender 
> (only) and delete the message.  Unauthorized interception of this 
> e-mail is a violation of federal criminal law.
> 
> ---  To post a message to this list, send mail to: [email protected]    You 
> are 
> currently subscribed as: [email protected]    Unsubscribe in the customer center 
> on our website: 
> http://www.bostonworkstation.com/customer_center/virtual_user_group_ta
> lk.aspx

CONFIDENTIALITY NOTICE: This e-mail message (including attachments) is covered 
by the Electronic Communications Privacy Act, 18 U.S.C.
2510-2521, and is intended only for the person or entity to which it is 
addressed and may contain confidential and/or privileged material.
Any unauthorized review, use, disclosure, dissemination, copying, forwarding or 
distribution is prohibited. If you are not the intended recipient, please 
contact the sender by reply e-mail and destroy all copies of the original 
message. If you are the intended recipient but do not wish to receive 
communication through this medium, please advise the sender immediately.


---  To post a message to this list, send mail to: [email protected]    You are 
currently subscribed as: [email protected]    Unsubscribe in the 
customer center on our website: 
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx   

This electronic mail and any attached documents are intended solely for the 
named addressee(s) and contain confidential information. If you are not an 
addressee, or responsible for delivering this email to an addressee, you have 
received this email in error and are notified that reading, copying, or 
disclosing this email is prohibited. If you received this email in error, 
immediately reply to the sender and delete the message completely from your 
computer system.

---  To post a message to this list, send mail to: [email protected]    You are 
currently subscribed as: [email protected]    Unsubscribe in the 
customer center on our website: 
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx   

Reply via email to