<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Hosting Office in a WPF Application</title>
	<atom:link href="http://drwpf.com/blog/2007/08/24/hosting-office-in-a-wpf-application/feed/" rel="self" type="application/rss+xml" />
	<link>http://drwpf.com/blog/2007/08/24/hosting-office-in-a-wpf-application/</link>
	<description>Drinking (and serving) the WPF Kool-Aid since 2002</description>
	<lastBuildDate>Mon, 30 Aug 2010 18:54:01 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dr. WPF</title>
		<link>http://drwpf.com/blog/2007/08/24/hosting-office-in-a-wpf-application/comment-page-1/#comment-590</link>
		<dc:creator>Dr. WPF</dc:creator>
		<pubDate>Thu, 07 Jan 2010 00:05:56 +0000</pubDate>
		<guid isPermaLink="false">http://drwpf.com/blog/?p=3#comment-590</guid>
		<description>Hey Ram,

You might take a look at gepi&#039;s comment above, which indicates a way to disable buttons within the Office toolbar (thanks gepi! :)).

The exception when hosting Visio doesn&#039;t surprise me.  As I noted, Visio was very flaky for me too when hosting it within the DSO Framer control.  Not sure if its a problem with the Framer control or Visio or some combination thereof.  Feel free to post any workarounds/findings here for others who might be interested.  :)

Thanks,
-dw</description>
		<content:encoded><![CDATA[<p>Hey Ram,</p>
<p>You might take a look at gepi&#8217;s comment above, which indicates a way to disable buttons within the Office toolbar (thanks gepi! <img src='http://drwpf.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ).</p>
<p>The exception when hosting Visio doesn&#8217;t surprise me.  As I noted, Visio was very flaky for me too when hosting it within the DSO Framer control.  Not sure if its a problem with the Framer control or Visio or some combination thereof.  Feel free to post any workarounds/findings here for others who might be interested.  <img src='http://drwpf.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks,<br />
-dw</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ram</title>
		<link>http://drwpf.com/blog/2007/08/24/hosting-office-in-a-wpf-application/comment-page-1/#comment-589</link>
		<dc:creator>Ram</dc:creator>
		<pubDate>Wed, 06 Jan 2010 23:42:22 +0000</pubDate>
		<guid isPermaLink="false">http://drwpf.com/blog/?p=3#comment-589</guid>
		<description>Hi DW,
       Exactly i am looking for the button with in the office toolbar..i will look in to that and one more thing i saw is when i opened and visio doc and then i click on the close button in wpf App toolbar then it is throwing an exception any ways i will look in to that too...

Thank&#039;s
Ram</description>
		<content:encoded><![CDATA[<p>Hi DW,<br />
       Exactly i am looking for the button with in the office toolbar..i will look in to that and one more thing i saw is when i opened and visio doc and then i click on the close button in wpf App toolbar then it is throwing an exception any ways i will look in to that too&#8230;</p>
<p>Thank&#8217;s<br />
Ram</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gepi</title>
		<link>http://drwpf.com/blog/2007/08/24/hosting-office-in-a-wpf-application/comment-page-1/#comment-588</link>
		<dc:creator>gepi</dc:creator>
		<pubDate>Wed, 06 Jan 2010 22:37:55 +0000</pubDate>
		<guid isPermaLink="false">http://drwpf.com/blog/?p=3#comment-588</guid>
		<description>Ram: at least you can disable it (with set_EnableFileCommand).. 

&#039;Setup the framer and commandbars options
With mFramer
	.Titlebar = False
	If isEditor Then
		&#039;show Word functionality except for the File menu buttons (handled by System)
		.Menubar = True
		.Toolbars = True
		pnltoolbar.Visible = False
		.set_EnableFileCommand(DSOFramer.dsoFileCommandType.dsoFileNew, False)
		.set_EnableFileCommand(DSOFramer.dsoFileCommandType.dsoFileOpen, False)
		.set_EnableFileCommand(DSOFramer.dsoFileCommandType.dsoFileSave, False)
		.set_EnableFileCommand(DSOFramer.dsoFileCommandType.dsoFileSaveAs, False)
		.set_EnableFileCommand(DSOFramer.dsoFileCommandType.dsoFileClose, False)
	ElseIf User.AccessLevel = SENIOR_ADMINISTRATOR Then
		&#039;if user is a senior admin in Foreign Investment and doesn&#039;t have the extra profile (template editor) ,
		&#039;hide the Create Autotext Entry button
		.Menubar = False
		.Toolbars = False
		pnltoolbar.Visible = True
		btnCreate.Visible = False
	Else
		Throw (New Exception(&quot;Your access level does not include Template editing&quot;))
	End If
End With

Note: pnltoolbar is a custom &#039;toolbar in that app.
Hope this example is useful to you..</description>
		<content:encoded><![CDATA[<p>Ram: at least you can disable it (with set_EnableFileCommand).. </p>
<p>&#8216;Setup the framer and commandbars options<br />
With mFramer<br />
	.Titlebar = False<br />
	If isEditor Then<br />
		&#8217;show Word functionality except for the File menu buttons (handled by System)<br />
		.Menubar = True<br />
		.Toolbars = True<br />
		pnltoolbar.Visible = False<br />
		.set_EnableFileCommand(DSOFramer.dsoFileCommandType.dsoFileNew, False)<br />
		.set_EnableFileCommand(DSOFramer.dsoFileCommandType.dsoFileOpen, False)<br />
		.set_EnableFileCommand(DSOFramer.dsoFileCommandType.dsoFileSave, False)<br />
		.set_EnableFileCommand(DSOFramer.dsoFileCommandType.dsoFileSaveAs, False)<br />
		.set_EnableFileCommand(DSOFramer.dsoFileCommandType.dsoFileClose, False)<br />
	ElseIf User.AccessLevel = SENIOR_ADMINISTRATOR Then<br />
		&#8216;if user is a senior admin in Foreign Investment and doesn&#8217;t have the extra profile (template editor) ,<br />
		&#8216;hide the Create Autotext Entry button<br />
		.Menubar = False<br />
		.Toolbars = False<br />
		pnltoolbar.Visible = True<br />
		btnCreate.Visible = False<br />
	Else<br />
		Throw (New Exception(&#8221;Your access level does not include Template editing&#8221;))<br />
	End If<br />
End With</p>
<p>Note: pnltoolbar is a custom &#8216;toolbar in that app.<br />
Hope this example is useful to you..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr. WPF</title>
		<link>http://drwpf.com/blog/2007/08/24/hosting-office-in-a-wpf-application/comment-page-1/#comment-585</link>
		<dc:creator>Dr. WPF</dc:creator>
		<pubDate>Wed, 06 Jan 2010 20:25:19 +0000</pubDate>
		<guid isPermaLink="false">http://drwpf.com/blog/?p=3#comment-585</guid>
		<description>Hi Ram,

It&#039;s pretty easy to get rid of the WPF save button, but I have a feeling you&#039;re asking about the button within the Office toolbar.  I honestly don&#039;t know.  I&#039;m not an Office developer.  You&#039;d have to consult the documentation for that.

Cheers,
-dw</description>
		<content:encoded><![CDATA[<p>Hi Ram,</p>
<p>It&#8217;s pretty easy to get rid of the WPF save button, but I have a feeling you&#8217;re asking about the button within the Office toolbar.  I honestly don&#8217;t know.  I&#8217;m not an Office developer.  You&#8217;d have to consult the documentation for that.</p>
<p>Cheers,<br />
-dw</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gepi</title>
		<link>http://drwpf.com/blog/2007/08/24/hosting-office-in-a-wpf-application/comment-page-1/#comment-579</link>
		<dc:creator>gepi</dc:creator>
		<pubDate>Wed, 06 Jan 2010 06:36:19 +0000</pubDate>
		<guid isPermaLink="false">http://drwpf.com/blog/?p=3#comment-579</guid>
		<description>Running VS2005 on Vista64, I was getting the same error; 
I changed the Active solution platform to x86 as explained above and voilà ! (in Configuration Manager to which you get by right-clicking on your Solution in Solution Explorer. Note that selecting New then x64 did not work..)</description>
		<content:encoded><![CDATA[<p>Running VS2005 on Vista64, I was getting the same error;<br />
I changed the Active solution platform to x86 as explained above and voilà ! (in Configuration Manager to which you get by right-clicking on your Solution in Solution Explorer. Note that selecting New then x64 did not work..)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ram</title>
		<link>http://drwpf.com/blog/2007/08/24/hosting-office-in-a-wpf-application/comment-page-1/#comment-575</link>
		<dc:creator>Ram</dc:creator>
		<pubDate>Tue, 05 Jan 2010 19:14:33 +0000</pubDate>
		<guid isPermaLink="false">http://drwpf.com/blog/?p=3#comment-575</guid>
		<description>Hi Dear Dr. WPF,
  This example is really help full to me and i appreciate your effort to create such an sample for us.. 
  i wanted to ask you one thing is it possible to invisible the save button in toolbar.because my requirement is to save the documents in database rather then file system .

Thank&#039;s
Ram....</description>
		<content:encoded><![CDATA[<p>Hi Dear Dr. WPF,<br />
  This example is really help full to me and i appreciate your effort to create such an sample for us..<br />
  i wanted to ask you one thing is it possible to invisible the save button in toolbar.because my requirement is to save the documents in database rather then file system .</p>
<p>Thank&#8217;s<br />
Ram&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr. WPF</title>
		<link>http://drwpf.com/blog/2007/08/24/hosting-office-in-a-wpf-application/comment-page-1/#comment-521</link>
		<dc:creator>Dr. WPF</dc:creator>
		<pubDate>Thu, 17 Dec 2009 22:48:25 +0000</pubDate>
		<guid isPermaLink="false">http://drwpf.com/blog/?p=3#comment-521</guid>
		<description>Bummer Wildertalent!  Looks like they&#039;ve pulled the DSO Framer Control.  :(

Looks like they are preparing for the release of Office 2010 and no longer wish to support the Active Document Container model.  You will have to contact Microsoft Developer Support directly regarding this decision.

If a new hosting solution becomes available, I will try to provide a sample.</description>
		<content:encoded><![CDATA[<p>Bummer Wildertalent!  Looks like they&#8217;ve pulled the DSO Framer Control.  <img src='http://drwpf.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Looks like they are preparing for the release of Office 2010 and no longer wish to support the Active Document Container model.  You will have to contact Microsoft Developer Support directly regarding this decision.</p>
<p>If a new hosting solution becomes available, I will try to provide a sample.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wildertalent</title>
		<link>http://drwpf.com/blog/2007/08/24/hosting-office-in-a-wpf-application/comment-page-1/#comment-520</link>
		<dc:creator>Wildertalent</dc:creator>
		<pubDate>Wed, 16 Dec 2009 20:20:41 +0000</pubDate>
		<guid isPermaLink="false">http://drwpf.com/blog/?p=3#comment-520</guid>
		<description>Hi

I follow the link for the DSO Framer Control above and it is not found - any ideas where I can get it from please

Thanks</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I follow the link for the DSO Framer Control above and it is not found &#8211; any ideas where I can get it from please</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Willy Chua</title>
		<link>http://drwpf.com/blog/2007/08/24/hosting-office-in-a-wpf-application/comment-page-1/#comment-519</link>
		<dc:creator>Willy Chua</dc:creator>
		<pubDate>Fri, 11 Dec 2009 21:55:56 +0000</pubDate>
		<guid isPermaLink="false">http://drwpf.com/blog/?p=3#comment-519</guid>
		<description>I am using VS2008 on XP 64.  And I got the REGDB_E_CLASSNOTREG error as described by others above.  Turns out you need to changed the cs build property&#039;s Platform target to x86.   Then it starts working.</description>
		<content:encoded><![CDATA[<p>I am using VS2008 on XP 64.  And I got the REGDB_E_CLASSNOTREG error as described by others above.  Turns out you need to changed the cs build property&#8217;s Platform target to x86.   Then it starts working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kwafir</title>
		<link>http://drwpf.com/blog/2007/08/24/hosting-office-in-a-wpf-application/comment-page-1/#comment-38</link>
		<dc:creator>kwafir</dc:creator>
		<pubDate>Mon, 27 Jul 2009 17:53:34 +0000</pubDate>
		<guid isPermaLink="false">http://drwpf.com/blog/?p=3#comment-38</guid>
		<description>i tried this with excel viewer (no office installed)&lt;br&gt;&lt;br&gt;result is this error:&lt;br&gt;&lt;br&gt;The associated COM server doesn&#039;t support Activex document embeding&lt;br&gt;&lt;br&gt;Can someone help me?</description>
		<content:encoded><![CDATA[<p>i tried this with excel viewer (no office installed)</p>
<p>result is this error:</p>
<p>The associated COM server doesn&#8217;t support Activex document embeding</p>
<p>Can someone help me?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

