View Full Version : Run a Activex Control from a command button


naym
03-04-2008, 02:57 PM
Hi all,

I am wandering if someone can help me out on this i have a thermal printer with it you get some ative x components to control the printer like for example what i am tryin to do is kick the cashdrawer which is connected to the printer,
Now the activex button does work correctly when click but i have another command button which prints out a couple of pages odf information so what i am tryin to do is have abother cmmand button when clicked run the code and then calls or runs the active x button to open the drawer is there a way i can do is i tried using the call statement with the name of the activex but with no luck.

i would really appreciate it if someone can help me out on this. thanks.

Regards
Naym

DCrake
03-05-2008, 01:36 AM
At the end of the print routine OnClick Event add the following line

Buttonx_Click

Where Buttonx is the name of the button that when clicked seperately works