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 http://social.msdn.microsoft.com/Forums/en-US/customercareframework/thread/52e3da87-6033-45d7-a165-2c070abe20bb , it also didn't work.
Kindly let me know why it happens.
<?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>
<AcquisitionTimeout milliseconds="4000" />
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.<initstring><global/> <interopAssembly><hostInside/><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
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.