I am trying to get my ActiveX control to print out nicely in Excel.
The control is written in C++. Originally I generated the control using the Visual Studio 2005 wizard. I have tested this with a simple wizard generated control to experiment with the OnDraw function and I discovered that even a control straight out of the wizard doesn't print well either. It appears to clip out a large portion of the control - which by default renders a black outline and some text in the centre.
The function IDataObject_GetData is called on my ActiveX control which in turn creates a metafile and renders to it.
Does anyone know how to get an ActiveX control to print out nicely? Alternatively links to useful information will be appreciated.