Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, May 2007
Are out-process servers insertable to PowerPoint ?


Message 1 in thread

I wonder if out-process servers are insertable to PowerPoint.

Qt doc says: “Microsoft Office applications are supported, but you need 
to register the controls as "Insertable" objects.”

The doc also says “RegisterObject” should be “yes”

I took C:\Qt\4.3.0beta\examples\activeQt\opengl\GLBox,
and set
Q_CLASSINFO("Insertable","yes")
Q_CLASSINFO("RegisterObject","yes")
Then, GLBox does appear in the object list in PowerPoint. But if I do 
insert it, I get error :-(

“Component not correctly registered”

even though Qt’s idc /regserver shows:

“Server registered successfully!”

What's wrong? Does anyone know how to let GLBox appear in PowerPoint?

More info: I use qt-win-commercial-4.3.0beta-vs2003.exe, WindowsXP, and 
Microsoft Office 2003.

Thanks in advance,
Lingfa


--
 [ signature omitted ] 

Message 2 in thread

> What's wrong? Does anyone know how to let GLBox appear in PowerPoint?

I'd find it more interesting, how to use OpenOffice parts this way... 

--
 [ signature omitted ] 

Message 3 in thread

J. Preiss wrote:

>>What's wrong? Does anyone know how to let GLBox appear in PowerPoint?
>>    
>>
>
>I'd find it more interesting, how to use OpenOffice parts this way... 
>  
>
"OpenOffice.org 1.1 comes with an ActiveX control that allows users to 
view OpenOffice.org documents within a browser window (Internet 
Explorer) on the Windows platform. The ActiveX control can also be used 
within native applications developed in Microsoft VisualBasic or Borland 
Delphi."

--
 [ signature omitted ] 

Message 4 in thread

"Lingfa Yang" <lingfa@xxxxxxx> wrote in message 
news:463F47C9.2030403@xxxxxxxxxx
>I wonder if out-process servers are insertable to PowerPoint.
>
> Qt doc says: ?Microsoft Office applications are supported, but you need 
> to register the controls as "Insertable" objects.?
>
> The doc also says ?RegisterObject? should be ?yes?
>
> I took C:\Qt\4.3.0beta\examples\activeQt\opengl\GLBox,
> and set
> Q_CLASSINFO("Insertable","yes")
> Q_CLASSINFO("RegisterObject","yes")
> Then, GLBox does appear in the object list in PowerPoint. But if I do 
> insert it, I get error :-(
>
> ?Component not correctly registered?
>
> even though Qt?s idc /regserver shows:
>
> ?Server registered successfully!?
>
> What's wrong? Does anyone know how to let GLBox appear in PowerPoint?


I don't think that out-of-process objects can be insertable. At the very 
least you need to implement an in-proc handler for this - and ActiveQt 
doesn't do that (and I wouldn't advise going there).

RegisterObject has nothing to do with this. It means that the object 
created is registered in COM's ROT.


Volker


--
 [ signature omitted ]