PDA

View Full Version : Print preview for Qt activex



sowmya
19th July 2010, 11:53
I have written an Activex server as a QWidget and QAxBindable.
I have an MFC container for this activex control.
However, When i try to do a print preview for the MFC container app, I only get a blank page and the widget is not getting rendered.
I tried calling a method of the Activex control from the OnDraw() function of the container control and tried to do an update() in it.. but this does not seem to work.Is there any way that I can use the OnDraw() function of the container control and redirect it to the widget to draw itself? or is there any other way to do it.
It would be great if i can get some suggestions on how to do this.