I am trying to get my ActiveX control to print well in Excel.
The control is written in C ++. Initially, I generated the control using the Visual Studio 2005 wizard. I tested it with a simple wizard created using the wizard to experiment with the OnDraw function, and I found that even the control directly from the wizard also does not print well. It appears to cut out most of the control, which by default displays a black outline and some text in the center.
The IDataObject_GetData function is called in my ActiveX control, which in turn creates a metafile and displays it.
Does anyone know how to get an ActiveX control to print? Alternatively, links to useful information will be appreciated.
source
share