Your control exposes a method, probably named Plot. You can easily see what
Methods and Properties the control exposes.
Open any code module.
Right click anywhere in the code window and select Object Browser.
In the Topmost left Combo control which currently shows <All Libraries>
select your ActiveX control's library.
Now you can see all of the components of the library and how to read/write
the Properties and call the Methods of the specific class.
Place code behind your CommandButton like:
Me.NameOfYourActiveXControl.Plot ProbablyAParameterForTheMethodHere
If you are still having trouble, from the Object Browser window copy and
paste the Plot method declaration.
For example, here is the VBA lib MsgBox function.
Function MsgBox(Prompt, [Buttons As VbMsgBoxStyle = vbOKOnly], [Title],
[HelpFile], [Context]) As VbMsgBoxResult
Member of VBA.Interaction

Signature
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
> I'm using a form with an ActiveX control (Autodesk's DWG TrueView) to view
> AutoCAD drawings. I can print the drawings directly from my database by
[quoted text clipped - 7 lines]
>
> Thanks.
Gina K - 06 May 2007 14:54 GMT
Thanks a million - I'm certainly headed in the right direction now!