Quantcast
Channel: Visual Studio Tools for Office (VSTO) forum
Viewing all 5157 articles
Browse latest View live

call a function when clicking shape powerpoint while sliding csharp

$
0
0

I know that we can add an action when clicking a shape while sliding by ActionSettings[PowerPoint.PpMouseActivation.ppMouseClick].Action in Csharp like my code below:

aromaClick =thisSlide.Shapes.AddShape(Office.MsoAutoShapeType.msoShape24pointStar,10,10,20,20);Globals.ThisAddIn.aromaClick.ActionSettings[PowerPoint.PpMouseActivation.ppMouseClick].Action=PowerPoint.PpActionType.ppActionRunProgram;

Globals.ThisAddIn.aromaClick.ActionSettings[PowerPoint.PpMouseActivation.ppMouseClick].Run="path-to-file";

but I wonder if I can call a function when click-shape happens? is it possible? like call this function:

void hello()

{

//something}

thank you!


How do I deal with the Excel 2013/2016 SDI custom task panel problem?

$
0
0

If you create a custompanel that hides/shows with a toggle button and open one instance of Excel it works fine. But when you open TWO it does not work.

Is there some code out there to deal with this so the SENCOND instance can get that panel as well ?  I have search everywhere and I am desperate.

Issue casting COMAddIn.Object to exposed interface

$
0
0

I can happily acess my AddIn from an external C# application.

            Excel.Application application = System.Runtime.InteropServices.Marshal.GetActiveObject("Excel.Application") as Excel.Application;
            object addInName = "T3AddIn";
            Office.COMAddIn addIn = application.COMAddIns.Item(ref addInName);
            addIn.Object.TestMethod();

The above code works. However what I wasn't able to do was cast the AddIn (as IAddInUtilities).

            Excel.Application application = System.Runtime.InteropServices.Marshal.GetActiveObject("Excel.Application") as Excel.Application;
            object addInName = "T3AddIn";
            Office.COMAddIn addIn = application.COMAddIns.Item(ref addInName);
            InterfaceLib.IAddInUtilities utilities = (InterfaceLib.IAddInUtilities)addIn.Object;
            utilities.TestMethod();

The above code does not work. It gives me a "InvalidCast" exception on the line where the cast is performed:

Unable to cast COM object of type 'System.__ComObject' to interface type 'T2Lib.IAddInUtilities'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{8B3B243C-7D2A-3789-848E-E279A688154E}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

It's an issue because I need to utlilise events raised by the AddIn. I have tried everything I can think of. I am deriving the AddIn's utilities class from StandardOleMarshalObject. The 'Register for COM interop' box is checked, on both the AddIn and class library which holds IAddInUtilities. I am at a loss! Any thoughts greatly appreciated.

It may be worth noting that when I compile, so long as 'Register for COM interop' is checked, I invariably get "Error    1    Cannot register type library "C:\Users\Jaff\Documents\Visual Studio 2010\Projects\T2Lib\T2Lib\bin\Debug\T2Lib.tlb". Error accessing the OLE registry. (Exception from HRESULT: 0x8002801C (TYPE_E_REGISTRYACCESS))    T2Lib" or something similar (depending on whether it's the AddIn or the class library) on the first try, and then on the second attempt at building it builds without a problem. I've been assuming its a Visual Studio bug, but perhaps it's significant.

 

Cannot Cast COMAddIn to Specified Interface

$
0
0

Following a blog from Andrew Whitechapel (http://blogs.msdn.com/andreww/archive/2007/01/15/vsto-add-ins-comaddins-and-requestcomaddinautomationservice.aspx) I tried to create an Excel Addin with a Com registered utility class that I could call from a windows form application.  Instead of having the interface inside of the AddIn, I moved it to a new project that is marked as ComVisible and set Register for COM interop to true.  However, when I try to cast the ComAddin to the interface I get an error:

 

 

System.InvalidCastException was unhandled
  Message="Unable to cast COM object of type 'System.__ComObject' to interface type 'SEQUELAddIn.Interfaces.IAddinUtilities'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{85B3534B-DD1A-4F07-B604-4EE610453F78}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))."
  Source="TestSEQUELAddin"
  StackTrace:
       at TestSEQUELAddin.Form1.Form1_Load(Object sender, EventArgs e) in C:\Documents and Settings\jshafer.ASCLAN1\My Documents\Visual Studio 2005\Projects\SEQUELAddIn\TestSEQUELAddin\Form1.vb:line 22
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Windows.Forms.Form.OnLoad(EventArgs e)
       at System.Windows.Forms.Form.OnCreateControl()
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl()
       at System.Windows.Forms.Control.WmShowWindow(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.ContainerControl.WndProc(Message& m)
       at System.Windows.Forms.Form.WmShowWindow(Message& m)
       at System.Windows.Forms.Form.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
       at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
       at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
       at System.Windows.Forms.Control.set_Visible(Boolean value)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(ApplicationContext context)
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
       at TestSEQUELAddin.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
       at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()

 

Why doesn't this work?

 

Here is the code:

In SEQUELAddIn (VSTO SE Excel 2003 Addin)

ThisAddIn.vb:

Code Snippet

public

class ThisAddIn

 

PrivateSub ThisAddIn_Startup(ByVal sender AsObject, ByVal e As System.EventArgs) HandlesMe.Startup

' Start of VSTO generated code

Me.Application = CType(Microsoft.Office.Tools.Excel.ExcelLocale1033Proxy.Wrap(GetType(Excel.Application), Me.Application), Excel.Application)

' End of VSTO generated code

EndSub

 

Private _addinUtilities As AddinUtilities

 

ProtectedOverridesFunction RequestComAddInAutomationService() AsObject

If (_addinUtilities IsNothing) Then

_addinUtilities =

New AddinUtilities()

EndIf

Return _addinUtilities

EndFunction

 

End

Class

 

 

 

In AddinUtilities.vb

Code Snippet

Imports

SEQUELAddIn.Interfaces

Imports

System.Runtime.InteropServices

 

<ComVisible(True)> _

<ClassInterface(ClassInterfaceType.None)> _

PublicClass AddinUtilities

Implements IAddinUtilities

 

PublicSub DisplayMessage() Implements IAddinUtilities.DisplayMessage

MessageBox.Show("Hello World")

EndSub

EndClass


 

In SEQUELAddIn.Interfaces (a Class Library)

In IAddinUtilities.vb:

Code Snippet

Imports

System.Runtime.InteropServices

 

<ComVisible(

True)> _

<Guid(

"85B3534B-DD1A-4f07-B604-4EE610453F78")> _

<InterfaceType(ComInterfaceType.InterfaceIsDual)> _

Public

Interface IAddinUtilities

Sub DisplayMessage()

End

Interface

 

 

In TestSEQUELAddin (a winform project)

In Form1.vb:

Code Snippet

Public

Class Form1

 

Private excelApp As Excel.Application

Private utils As SEQUELAddIn.Interfaces.IAddinUtilities

 

PrivateSub Form1_FormClosing(ByVal sender AsObject, ByVal e As System.Windows.Forms.FormClosingEventArgs) HandlesMe.FormClosing

utils = Nothing

excelApp =

Nothing

GC.Collect()

GC.WaitForPendingFinalizers()

GC.Collect()

GC.WaitForPendingFinalizers()

EndSub

 

PrivateSub Form1_Load(ByVal sender AsObject, ByVal e As System.EventArgs) HandlesMe.Load

excelApp =

New Excel.Application()

excelApp.Visible =

True

excelApp.Workbooks.Add(Excel.XlSheetType.xlWorksheet)

Dim addinName AsObject = "SEQUELAddIn"

Dim addin As Office.COMAddIn = excelApp.COMAddIns.Item(addinName)

utils =

DirectCast(addin.Object, SEQUELAddIn.Interfaces.IAddinUtilities)

EndSub

 

PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As  System.EventArgs) Handles Button1.Click

utils.DisplayMessage()

EndSub

 

EndClass

 

 

 

 

 

how to highlight above & after text in table using vsto in word document

$
0
0


Hi,

can you please help me.......

I am very new to VSTO but good at .NET 2013. I would like to know - in VSTO for MS Word, 

How can i highlight above & after text of a table in word document. 

I want to check ony by one text above & after in table through next button when click on button they move to next missing text ....that get missing specific default text which is present on above & on after table ,

if any tag missing then highlight current table on the same 

default value(like [[abc]])

test1

test2

test4

test3

default value(like [[pqr]])


test5

test6

test8

test7

default value(like [[pqr]])

default value(like [[abc]])

test5

test6

test8

test7

In form1.cs

when click on next button move to next missing text and highlight table

I want to first check missing text and then highlight table of missing text

please please help me 



Data-bound Word tables

$
0
0

Hi,

Below my development environment:

  • Windows 7 Professional 64 bits
  • Office 2013 Plus
  • Visual Studio 2013 Professional
  • .NET Framework 4.0
  • Document-level customization for Word

My goal is to present a table in a document and I need to show all records. I would like to know if it is possible to bind a Word table to a data table. If not, I know I can use data grid views, but data grid views cannot span multiple pages. What is the recommended approach to achieve my goal?

Carlos

Office Add In works for Word 2010 but not Excel 2010 or PowerPoint 2010

$
0
0

I have an add in that runs successfully on all Word, Excel and PowerPoint 2013 and 2016. I also needed to support 2010. With 2010 the add in only works for Word but doesnt load with Excel or PowerPoint. It gives the error: Common Language Runtime could not be loaded which according to MSDN means that there is incompatibility of .NET framework. I dont understand how the same add in can run for Word 2010 but not Excel 2010 or PowerPoint 2010.

I am using Visual Studio 2015.
Target framework: .NET 4.5 (Full)
Runtime: Visual Studio 2010 Tools for Office Runtime
I have ensured that the framework is installed on the user machine.

Need Link to download Office 2016 tools for Visual studio 2015

$
0
0

I am working on creating a add-in for outlook. This add-in target version of outlook is outlook 2016. I am currently using VSTO tools for Office 2013 to create this add-in. However, I want to target Outlook 2016. Can anyone share the link to download the VSTO for Office 2016.

Please note that I have tried Office tools for Visual studio 2015 preview version but this has not helped me in solving the issue I am facing.

My issue is when I create a appointment in Outlook 2016, I can select Body format text of the meeting to either Text, HTML or Rich Text format from Ribbon.

But I am not able to programmatically access this body format values, I assume the issue is since I am using VSTO for office 2013.

Thanks for your help in advance.


Persistent tag or metadata in email

$
0
0

Hi there! i need to address the requirement to write metadata to an e-mail message using a VSTO addin and based on my test, i´m not sure which is the right way.

I tried using custom properties, but when A writes an email to B, properties are not present in the B's email message.

I´m using:

var prop = mailItem.UserProperties.Add(key, Microsoft.Office.Interop.Outlook.OlUserPropertyType.olText, true, 1);
prop.Value = value;

But using outlookspy the metada is on A´s Email but not in B's Email.

Any help? do i have to use header instead properties? I will appreciate any recommendation.

Thanks in advance and happy new year to you all!


How to avoid duplicate appointment creation in Outlook 2010?

$
0
0
I am developing an Outlook AddIn. I am syncing appointments from Outlook to a server but when two different users create same appointment means having same time and subject then they get synced as two different appointments though I am passing GlobalId but two different user have different GlobalId.  Can anyone help?

Change (get and set) XML for Word Document using Microsoft.Office.Interop.Word library ?

$
0
0

I build word addin that have two check-boxes to swabbing between TEXT view and XML View. To provide  editing both TEXT and XML View for users.  
When i want to change the XML I must be close the document and re-open it usingDocumentFormat.OpenXml library. so this take long time and some time not work

The code :

private void ShowDocBodyXML_Click(object sender, RibbonControlEventArgs e)        {            var doc = Globals.ThisAddIn.Application.ActiveDocument;            doc.Save();            string fileName = doc.FullName;            doc.Close();            using (WordprocessingDocument document = WordprocessingDocument.Open(fileName, true))            {                MainDocumentPart mainPart = document.MainDocumentPart;                Body body = mainPart.Document.Body;                string text = body.InnerXml;                //do some change to the XML                 body.RemoveAllChildren();                DocumentFormat.OpenXml.Wordprocessing.Paragraph para = body.AppendChild(new DocumentFormat.OpenXml.Wordprocessing.Paragraph());                Run run = para.AppendChild(new Run());                run.AppendChild(new Text(text));            }            Globals.ThisAddIn.Application.Documents.Open(fileName);                    }

I want to asking. Is it possible to change XML in doc.WordOpenXML I mean change XML of the document using Microsoft.Office.Interop.Word library rather than using DocumentFormat.OpenXml library I mean there is no need to close and re-open the document? 
If it is not possible why  Microsoft using Interop.Word library  just provide get method for show XML and didn't provide set method for change XML?


Application_SheetBeforeRightClick Not Firing

$
0
0
I created an VSTO Excel 2010 addin where I am using the "Application_SheetBeforeRightClick" event.  I am having a problem with this event because it doesn't fire all the time.  It works fine when I initially open excel and open a workbook however it stop firing after I create a new workbook and it becomes active.  I thought that since this is an application event, it should fire all the time whenever any workbook worksheet combination becomes active.  Please someone help understand how to properly handle this event to make sure it fires and I can handle it everytime there is a RightClick.  Thanks in advance and Happy new year.

Error while adding Rich Text Content Controls

$
0
0
I am trying to programmatically add a RichText Content Control within a document over a selected text where the text will be embedded within the control after the control is added. Something like this:
public void AddControlOverText(ref Word.Range currentRange)
{
    string saveText = currentRange.Text;
    object obj = (object)currentRange;
    Word.ContentControl textControl = currentRange.ContentControls.Add(Microsoft.Office.Interop.Word.WdContentControlType.wdContentControlRichText, ref obj);
    textControl.Title = "My Title";
    textControl.Tag = "My Tag";
    currentRange.Text = saveText;
}

I have two questions:
1. At times, I am getting the error message ""Rich text controls cannot be applied here." while doing currentRange.ContentControls.Add. So far I have not been able to identify what set of characters / conditions cause this error. Any ideas?
2. Even if I do get the error, is there a way to suppress the message Word is throwing above?

I am using Word 2007, VSTO 3.0 and Visual Studio 2008. Thanks in advance.
Kaushik Chakraborti

unable to add reference

$
0
0

hello

i am using visual studio 2010 and ms excel 2013

when i tried to add reference i cant see excel library

in reference

please help

PowerPoint Print Options Dialog

$
0
0

My PP 2016 addin re-purposes the FilePrint button to show a form informing the user that they cannot print the file. This is done with a customUI.xml and works great. However when the user CAN print the presentation, I need to invoke the Print Options Dialog for them to choose a printer. Currently I can only see to call PrintOut() method, which bypasses the Options Dialog.

What method or strategy do I need to apply to invoke the Print Options Dialog via runtime.

CustomUI14.xml

<?

xmlversion="1.0"encoding="UTF-8"?>

<

customUIxmlns="http://schemas.microsoft.com/office/2009/07/customui"onLoad="Ribbon_Load">

    <

backstageonShow="backstage_show">

    <

buttonid="PPSaveAs"label="Save As"visible="true"onAction="PowerPointSaveAs"insertAfterMso="TabSave"isDefinitive="true"/>

    <

buttonid="PPPrint"label="Print"visible="true"onAction="PowerPointPrint"insertAfterMso="TabPrint"isDefinitive="true"/>

    <

tabidMso="TabSave"visible="false"></tab>

    <

tabidMso="TabPrint"visible="false"></tab>

  </

backstage>

</

customUI>

CallBack

public

voidPowerPointPrint(Office.IRibbonControlcontrol)

        {

           

DirectoryInfodoc =newDirectoryInfo(_pp.Application.ActivePresentation.FullName);

           

DirectoryInforep =newDirectoryInfo(Properties.Settings.Default.DocuSharePath);

           

if(Documents.RepositoryItem.IsFromRepository(doc, rep))

            {

                Documents.

RepositoryPrintp =newDocuments.RepositoryPrint(newFileInfo(_pp.Application.ActivePresentation.FullName), Documents.DocumentType.Office_Powerpoint);

                p.ShowDialog();

            }

           

else


            {

                _pp.Application.ActivePresentation.PrintOut();

            }

           

        }

Any advice is appreciated.

Greg


VSTO 2010 Add-In running in Outlook 2016 - Mail duplicates itself on Save()

$
0
0

Hi,

i have a little add-in for my personal use case that also generates an issue that we have with our selling product addin: Some emails are duplicated when they are saved programatically. As the procedures in the big product are way too big to post them in here i'll share the code of my little add-in with you:

private void button2_Click(object sender, RibbonControlEventArgs e)
{
    Explorer currentExplorer = Globals.ThisAddIn.Application.ActiveExplorer();
    if (currentExplorer == null)
        return;

    Selection currentSelection = null;
    try
    {
        currentSelection = currentExplorer.Selection;
        if (currentSelection.Count > 0)
        {
            for (int i = 1; i <= currentSelection.Count; i++)
            {
                dynamic currentItemObj = currentSelection[i];
                try
                {
                    string subject = currentItemObj.Subject;
                    int pos;
                    if ((pos = subject.IndexOf("New: ")) > -1 ||
                        (pos = subject.IndexOf("Neu: ")) > -1)
                    {
                        currentItemObj.Subject = subject.Remove(pos, 5);
                        currentItemObj.Save();
                    }
                }
                catch { }
                finally
                {
                    if (currentItemObj != null)
                        Marshal.ReleaseComObject(currentItemObj);
                }
            }
        }
    }
    //catch
    //{ }
    finally
    {
        if (currentSelection != null)
            Marshal.ReleaseComObject(currentSelection);

        Marshal.ReleaseComObject(currentExplorer);
    }
}

If i use this on an email no matter if it is already read or new, the email gets duplicated. But only within Outlook 2016, 2013 and 2010 worked well.

Any ideas?

--
Daniel

Creating a tab control similar to the one use in the Word Navigation pane

$
0
0
I would like to add to my custom task pane a "tab control" which looks similiar to the one used in the Word Navigation pane.

This is how it looks like:

[<] HEADINGS | PAGES | RESULTS [>]

I've already tried System.Windows.Forms.TabControl. But it seems that this is not the right component.
 

Print MS Access Report from Visual Studio

$
0
0

I have an Visual Studio 2013 program which connects to a MS Access 2010 database. After the program calculates and writes values out to the DB, I need to print a report that is in the Access DB.

I have read through this:  How To Automate Microsoft Access From Visual Basic .NET

I found this similar unanswered question:  print access report

The code I have now is as follows:

Imports Access = Microsoft.Office.Interop.Access

Public Class FrmReports

    Dim oAccess As Access.application

    Private Sub btnSumByPlan_Click(sender As Object, e As EventArgs) Handles btnSumByPlan.Click

        oAccess = CreateObject("Access.Application")
        oAccess.visible = True
        oAccess.opencurrentdatabase("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\CLI_CRVM.accdb")

        oAccess.docmd.openreport(ReportName:="SumByPlan", View:=Access.AcView.acViewPreview)

    End Sub
End Class

It compiles but when I click the button, I get the following error:

"An unhandled exception of type 'System.InvalidCastException' occurred in CLI CRVM.exe

Additional information: Unable to cast COM object of type 'Microsoft.Office.Interop.Access.ApplicationClass' to class type   'CLI_CRVM.Access.applicationclass'. Instances of types that represent COM components cannot be cast to types that do not represent COM components; however they can be cast to interfaces as long as the underlying COM component supports QueryInterface calls for the IID of the interface."

Thanks in advance!

Outlook Addin does not work outside dev machine

$
0
0
Hello, I hope folks here can help. I have a VSTO addin that works fine in 32-bit Outlook. However if I install 64-bit Outlook, it fails to load. It runs fine and loads if I debug on my dev machine in 64-bit outlook. The addin has 2 dependency dlls and I did not make any change to those dlls for 64-bit. The searches suggested that the .net dlls will be fine in 64-bit. These two dlls appear at the very end of the error log below, in case someone is interested in knowing which dlls are those and and what version etc. The add-in build settings were also left at "any cpu". Here is what I see come up when alerts are not suppressed - Object reference not set to an instance of an object. ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at MyAddIn.ThisAddIn.CreateRibbonExtensibilityObject() at Microsoft.Office.Tools.AddInImpl.get_RibbonExtensibility() at Microsoft.Office.Tools.AddInImpl.Initialize() at MyAddIn.ThisAddIn.Initialize() at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.ExecuteCustomization.ExecutePhase(ExecutionPhases executionPhases) at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.ExecuteCustomization.Microsoft.VisualStudio.Tools.Office.Runtime.Interop.IExecuteCustomization2.LoadEntryPoints(IntPtr serviceProvider) ************** Loaded Assemblies ************** mscorlib Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll ---------------------------------------- Microsoft.VisualStudio.Tools.Office.Runtime Assembly Version: 10.0.0.0 Win32 Version: 10.0.40820.0 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Runtime/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Runtime.dll ---------------------------------------- System.Core Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll ---------------------------------------- System Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.34238 built by: FX452RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- System.Configuration Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll ---------------------------------------- System.Xml Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- Microsoft.VisualStudio.Tools.Applications.Hosting Assembly Version: 10.0.0.0 Win32 Version: 10.0.40820.0 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Hosting/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Hosting.dll ---------------------------------------- Microsoft.VisualStudio.Tools.Applications.Runtime Assembly Version: 10.0.0.0 Win32 Version: 10.0.40820.0 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Runtime/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Runtime.dll ---------------------------------------- System.Deployment Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.34280 built by: FX452RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll ---------------------------------------- System.Security Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.34252 built by: FX452RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Security.dll ---------------------------------------- Microsoft.VisualStudio.Tools.Applications.ServerDocument Assembly Version: 10.0.0.0 Win32 Version: 10.0.40820.0 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.ServerDocument/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.ServerDocument.dll ---------------------------------------- System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.34251 built by: FX452RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System.Drawing Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.34270 built by: FX452RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- System.Xml.Linq Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll ---------------------------------------- Microsoft.Office.Tools Assembly Version: 10.0.0.0 Win32 Version: 10.0.40820.0 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.Tools/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.dll ---------------------------------------- Microsoft.Office.Tools.Outlook.Implementation Assembly Version: 10.0.0.0 Win32 Version: 10.0.40820.0 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.Tools.Outlook.Implementation/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.Outlook.Implementation.dll ---------------------------------------- Microsoft.Office.Tools.Common.Implementation Assembly Version: 10.0.0.0 Win32 Version: 10.0.40820.0 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.Tools.Common.Implementation/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.Common.Implementation.dll ---------------------------------------- Microsoft.Office.Tools.Common Assembly Version: 10.0.0.0 Win32 Version: 10.0.40820.0 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.Tools.Common/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.Common.dll ---------------------------------------- Microsoft.Office.Tools.Outlook Assembly Version: 10.0.0.0 Win32 Version: 10.0.40820.0 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.Tools.Outlook/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.Outlook.dll ---------------------------------------- MyAddIn Assembly Version: 1.4.0.51221 Win32 Version: 1.4.0.51221 CodeBase: file:///C:/Program%20Files/MyAddIn/Outlook/MyAddIn.DLL ---------------------------------------- Microsoft.Office.Tools.Outlook.v4.0.Utilities Assembly Version: 10.0.0.0 Win32 Version: 10.0.30319.1 CodeBase: file:///C:/Program%20Files/MyAddIn/Outlook/Microsoft.Office.Tools.Outlook.v4.0.Utilities.DLL ---------------------------------------- Microsoft.Office.Tools.Common.v4.0.Utilities Assembly Version: 10.0.0.0 Win32 Version: 10.0.30319.1 CodeBase: file:///C:/Program%20Files/MyAddIn/Outlook/Microsoft.Office.Tools.Common.v4.0.Utilities.DLL - Why doesn't this work ? How can I troubleshoot this further ?

New VSTO project is incompatible when reopened in VS2015

$
0
0

I create an new project based on Excel 2016 or Word 2016 in VS2015 Community.

When I save and reopen I get ExcelWorkbook1 (incompatible)

'This project is incompatible with the current edition'

'You do not have a version of Office that is supported with this version of Visual Studio. Please install Office 2010 or greater then try again.'

I have tried reinstalling everything multiple times. I have this on both Server 2012 and Windows 8.1

I upgraded from Office 2013 + VS 2013 where everything was working fine.

And: when I remove ExcelWorkbook1 from the solution and add again as existing project, project loads fine. Only to find the problem reoccur after saving and closing VS2015.




Viewing all 5157 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>