المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Create and open a taskpane in outlook opened worddocument



C# Programming
06-29-2009, 07:00 PM
Hello,

I'm having an Outlook 2007 addin, which opens an existing word 2007 document and fills in some userdata, which I receive from Outlook.

The next step is an actionpane, which should be opened in this worddocument.
I wrote some worddocumenttemplate in VS 2008 and got everything working:
...
namespace WordDocumentTaskpane
{
public partial class ThisDocument
{
private HelloControl hello = new HelloControl();
private void ThisDocument_Startup(object sender, System.EventArgs e)
{
this.ActionsPane.Controls.Add(hello);
}
...
This HelloControl is just a userconstrol to display some items from a database.

By working hard on the Outlook addin, I can't get the taskpane / actionspane created in the opend worddocument, because I can't call the according methods.
Are there any basic ideas?

Grettings http://www.barakasoft.com/script/Forums/Images/smiley_confused.gif