Hi All,
I'm having some trouble adding an additional (ActiveX) control from an ocx file and was hoping someone might be able to tell me what I'm doing wrong please.......
I am working on a project for a charity (a museum), for an Excel based sales system (with some specific elements hence not an off-the-shelf system). The computer is connected to a receipt printer which in turn has a cash-drawer connected. The printer beginning to print something is normally what triggers the drawer to open. I'd like to provide though some functionality to be able to open the drawer without making a sale or printing anything (if someone needs change for the coffee machine for example).
I know this is possible as I've done it in the past. I'd actually kept some notes at the time which tell me that the process was;
1) Add a reference to StarCEComponents.ocx in the vba project
2) Add StarCEComponents.CashDrawerKicker as an additional control to the VBA toolbox
3) Add the CashDrawerKicker control where required or call CashDrawerKicker.OpenCashDrawer from elsewhere
So, when I found the notes I thought great! But...... I have;
1) Registered the ocx with regsvr32 and received a success message
2) Added a reference to the ocx
When I then go to add the additional control there is nothing additional listed, i.e. StarCEComponents.CashDrawerKicker is not there to be added as an additional control.
I've invested a huge amount of time in this project (just to be clear, not paid) and am very very happy with the results thus far, I just have this one sticking point. I'm hoping that someone might be able to tell me where I'm going wrong please? Has the methodology for adding additional controls changed? Might I have left a step out of my notes? Might a change in office version have spoilt things?
Incase it's relevant, I'm using Office 2019 and Windows 11. The receipt printer is a Star TSP-100.
Many thanks
Richard
I'm having some trouble adding an additional (ActiveX) control from an ocx file and was hoping someone might be able to tell me what I'm doing wrong please.......
I am working on a project for a charity (a museum), for an Excel based sales system (with some specific elements hence not an off-the-shelf system). The computer is connected to a receipt printer which in turn has a cash-drawer connected. The printer beginning to print something is normally what triggers the drawer to open. I'd like to provide though some functionality to be able to open the drawer without making a sale or printing anything (if someone needs change for the coffee machine for example).
I know this is possible as I've done it in the past. I'd actually kept some notes at the time which tell me that the process was;
1) Add a reference to StarCEComponents.ocx in the vba project
2) Add StarCEComponents.CashDrawerKicker as an additional control to the VBA toolbox
3) Add the CashDrawerKicker control where required or call CashDrawerKicker.OpenCashDrawer from elsewhere
So, when I found the notes I thought great! But...... I have;
1) Registered the ocx with regsvr32 and received a success message
2) Added a reference to the ocx
When I then go to add the additional control there is nothing additional listed, i.e. StarCEComponents.CashDrawerKicker is not there to be added as an additional control.
I've invested a huge amount of time in this project (just to be clear, not paid) and am very very happy with the results thus far, I just have this one sticking point. I'm hoping that someone might be able to tell me where I'm going wrong please? Has the methodology for adding additional controls changed? Might I have left a step out of my notes? Might a change in office version have spoilt things?
Incase it's relevant, I'm using Office 2019 and Windows 11. The receipt printer is a Star TSP-100.
Many thanks
Richard