Connecting barcode device using an OCX
angelotk
Member Posts: 12
Hello,
I have a barcode device connected to COM2 port and I would like to send and receive data from it.
I have a visual basic example wich works great with a OCX.However, when I use this OCX in Navision, I can't have the events(like the events DataArrived which tells when something is put in the device)because it's a OCX.
Does anyone knows how can I procede to sent data to this device and receive data when something is put in this device?
Thks everyone
I have a barcode device connected to COM2 port and I would like to send and receive data from it.
I have a visual basic example wich works great with a OCX.However, when I use this OCX in Navision, I can't have the events(like the events DataArrived which tells when something is put in the device)because it's a OCX.
Does anyone knows how can I procede to sent data to this device and receive data when something is put in this device?
Thks everyone
0
Comments
-
You have to create an automation (DLL), which will catch the events from your OCX and will fire own events.0
-
There are many ways how to do that. But for example I created small .exe tool which is able to convert the data sent to COM port into keystrokes (it change the COM scanner into "Keyboard" scanner) or it will just simulate keystroke "Ctrl+F12" and I catch this event through hidden Menu Button and through calling function of this automation I receive the data...0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
