gunior question

Y

Yael

Hi,
I'm tring to integrated outlook 2003 and vs.net 2003
I get this errer:
C:\Documents and Settings\Owner\Desktop\MyAddin1\Connect.cs(142):
'Microsoft.Office.Core.CommandBarButton' is defined in multiple places; using
definition from 'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\office.dll'

I found this:

"If the PIA stuff worked right, when you select it in the solution explorer,
the path in the properties tab should be pointing into the GAC, not into the
office folder."

I get office folder!!!
I did in Command Prompt this from this site:
http://msdn2.microsoft.com/en-us/library/aa163987(office.10).aspx

Code Snippet
Installing the Office XP PIAs

The Office XP PIAs are included as part of a self-extracting executable
(.exe) file. To extract the Office XP PIAs to a file directory folder of your
choice, simply open the .exe file available at the link in the beginning of
this article. Once you have extracted all of the Office XP PIAs from the .exe
file:

On a computer with Visual Studio .NET installed and the extracted Office XP
PIAs, on the Start menu, click (All) Programs, point to Microsoft Visual
Studio .NET, point to Visual Studio .NET Tools, and click Visual Studio .NET
Command Prompt. The Visual Studio .NET Command Prompt window appears. This
facilitates the use of the .NET Framework SDK tools.
In the Visual Studio .NET Command Prompt window, use the cd (change
directory) command to change to the file directory in which the Office XP
PIAs were extracted. For example, if you extracted the Office XP PIAs to a
C:\Office XP PIAs\ folder, type cd C:\Office XP PIAs\.
In the Visual Studio .NET Command Prompt window, type register.bat, press
ENTER, and wait while the Office XP PIAs are installed and registered.

I still get the office folder
What am I missing..
someone unswer me this:
Office XP PIA's are not for Office 2003.
If you want to programm against Outlook 2003 install the PIA for Office 2003
also.
http://www.microsoft.com/downloads/...3a-ac14-4125-8ba0-d36d67e0f4ad&DisplayLang=en

So I downoaded this to.

Please help me..
Thank's
Yael.
 
K

Ken Slovak - [MVP - Outlook]

If you want to develop for Outlook 2003 you need to use the Outlook 2003
PIA's. Once those are installed from either the Office CD or from the
redistributable package remove all references you have to Office and then
re-add the Office reference from the Office 2003 PIA.
 
Y

Yael

Thank's for your replay,
"If you want to develop for Outlook 2003 you need to use the Outlook 2003
PIA's......remove all references you have to Office and then
re-add the Office reference from the Office 2003 PIA."

"How To Build an Office COM Add-in by Using Visual C# .NET"
actually, I succeed to add a button to autlook 2003 from vs.net 2003
Please let me know if my way is OK:
I didn't install the pia's..what I did is:
onlt add System.Windows.Forms.dll to references.
Then everything is run ok..
I did all this from this site:

https://login.live.com/login.srf?wa...oft.com%2fdefault.aspx%2fkb%2f302901&id=74335
 
K

Ken Slovak - [MVP - Outlook]

If what you are doing works and you're happy with it that's all that
matters.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top