Question about Host Office Word(External App) in CCF2009 QFE


  • hi,
       I want to host the office word as a external app in ccfwpfPanel, but everytime it also appears as an indepandant windows and it is not contained by the MainPannel. But when i hosting the NotePad ,sometimes it worked and sometimes it appears as an indepandant window.
    With , it also didn't work.

    Kindly let me know why it happens.
    Thank you.

    <?xml version="1.0" encoding="utf-16"?>
        <URL>D:\Program Files\Microsoft Office\Office12\WINWORD.EXE</URL>
        <WorkingDirectory>D:\Program Files\Microsoft Office\Office12\</WorkingDirectory>
        <hostOnTop />
      <AcquisitionTimeout milliseconds="4000" />
        <Type>Microsoft.Ccf.HostedApplicationToolkit.DataDrivenAdapter.WinDataDrivenAdapter, Microsoft.Ccf.HostedApplicationToolkit.DataDrivenAdapter</Type>
        <Controls />
      <global />
    Thursday, December 17, 2009 8:59 AM

All replies

  • If am not wrong, when you open Win Word.EXE it launches as a different process which is not under the control of CCF, still you can control location. It might work sometime.

    Please refer to CCF deployment guide 2008.

    To embed a Win32 application within CCF, you add the XML tag <hostInside/> to the XML initialization string within the Application table.
    <global/> <interopAssembly>
     <URL>C:\windows\system32\cmd.exe</URL> <Arguments>/k math.exe</Arguments> <WorkingDirectory>c:\</WorkingDirectory> </interopAssembly> <displayGroup>floating</displayGroup> <optimumSize x="800" y="600" /> <minimumSize x="640" y="480" /> </initstring>

    The <hostInside/> tag causes the application to be contained within the CCF desktop. However the application is still running within its own process space as before and it has no understanding that it is part of CCF.

    hope this helps!!!
    Dipesh Parmar

    Dipesh Parmar
    Tuesday, December 22, 2009 10:29 AM
  • If you don’t need the full word engine.  Meaning all the “stuff” word does,  and your just doing document viewing or lightweight editing,  You should consider just using the Word Document control  instead.  You can put that in a Hosted control inside CCF..

    WPF also has the FlowDocument control you may want to look at.


    Friday, January 08, 2010 3:58 PM