I am trying to use the OneNote interop from visual studio 2010. I have OneNote 2010 installed, I am building a .net 2.0 win forms app. I add a reference, Select the COM tab, and choose either Microsoft OneNote 12.0 Object Library or Microsoft OneNote 14.0 Object Library. Regardless of what I choose, when I click ok my references list in my project shows Microsoft.Office.Interop.OneNote with a yellow warning icon next to it. If I try to compile I get an error:
The input file 'C:\Program Files\Microsoft Office\Office14\ONENOTE.EXE' is not a valid type library. D:\Develop\2.0\Projects\Office\OneNote\File Import\OneNote File Import\TlbImp OneNote File Import
I've done this before in earlier version of Visual Studio, is there something else I need to do?
No. I just tried and it works fine for me. Have you tried a project from scratch? Does it work if you target 4.0?
Related
How to install visual studio tools for office runtime in order that I can use Word 2010 Document template in Visual Basic 2010?
in Solution Explorer , Right Click on References >> Add References >>Microsoft.Office.Interop
use in your form :
Imports Microsoft.Office.Interop
or find on google Interop.MSDACS.dll an copy to assembly folder,
and Excel example : http://www.dotnetperls.com/excel-vbnet
and for Word ex: clic link here for Word
How to install visual studio tools for office runtime in order that I can use Word 2010 Document template in Visual Basic 2010?
See Visual Studio 2010 Tools for Office Runtime.
VSTO is a part of Visual Studio. It is included in paid editions only. The Express editions are not supported (except the Community edition of Visual Studio 2013).
Typically you need to include the VSTO runtime as a prerequsite to the add-in installer. See Publishing an Office Solution by Using Windows Installer for more information.
If you're using Visual Studio 2015 Community, go to Office Developer Tools
and click "Get Office Developer Tools", which takes you to:
http://aka.ms/getlatestofficedevtools
https://www.visualstudio.com/en-us/features/office-tools-vs.aspx
I'm trying to load the Word Object Library for Visual Basic in Visual Studio Express but having some trouble.
I go to the Project menu, Add Reference, COM and check Microsoft Word 14.0 Object Library and click ok. But I still get the error "Word.application" is not defined etc. And when I type "word." there's no suggestion menu, it's not found.
Am I doing something wrong?
To the top of your module add;
Imports Microsoft.Office.Interop
I want to open a program (written in Visual basic 6) to be open in Visual Studio.net. Please guide, how could I do that?
While trying to open VB6 (.vbp file) program directly from the OPEN project option in visual studion.net, I was getting this error,
"Visual Basic 6 (.vbp) files cannot be opened in Visual Studio"
I am trying to open in VS 2010.
Visual Studio 2010 does not support VB6 projects. See the link here
From the msdn documentation:
Visual Studio 2010 does not provide tools for upgrading applications and projects from Visual Basic 6.0. If you want to upgrade your project from Visual Basic 6.0 to Visual Basic 2010, you can use the upgrade tools provided with earlier versions of Visual Studio and then upgrade the project again in Visual Studio 2010.
Visual Basic Tools for Visual Studio
There's a plugin called Visual Basic Tools for Visual Studio that provides the following features:
load classic VB workspace- and project-files and offers quick access to the extension´s options
integrates with the solution explorer and the code editor having support for syntax highlighting, basic outlining (allows to expand/collapse methods, properties and types) as well as navigation bar support.
Classes, Types, Modules, Forms and Controls can be inspected using the Object Browser and Class View.
From the reading, it's unclear if you can actually build the project, though it does say:
The import tool creates a new solution and MSBuild compatible projects.
Links to the plugin by VS Version
2012-2013
2015
2017
RAD Basic
There is also an independent IDE called RAD Basic that claims the following features:
New and modern IDE (Integrated Development Environment) with form designer supporting drag and drop, code completion, refactoring tools, etc.
RAD Basic Compiler: Compiler 100% compatible with your VB6 project (vbp, frm, bas and cls files). Generate native executables (exe and ocx) in both 32-bit and 64-bit.
RAD Basic Forms: Reimplementation of common VB6 controls and components supporting 32-bit and 64-bit.
etc.
Speaking from my experience, it's not easy to open a Visual Basic 6.0 project in any versions of Visual Studio above 2008.
Although 2008 and below versions do provide an automatic function to convert Vb6 code to the VB.net framework. But, the problem starts after the conversion - it can skip some code, add functions/variables on its own, or modify the functional behavior on its own, and with that the VB.proj will be created with errors and you will not be able to open it anywhere as a solution file. The same with any 3rd party tools.
If you want to open the VB6 code try Visual Basic 6.0 Portable edition.
But headache will still follow you there, please refer this link
Installation of VB6 on Windows 7 / 8 / 10
Make sure you are clicking on the project file itself... Right click on the file and select "Open With" and select your visual studio program. It may need to be converted and if so, it will prompt you to convert the project.
Thanks!
Download Visual Basic Tools for Visual Studio,allows to work with classic VB workspaces and projects
i am trying to make a COM excel addin in VB from visual studio 2012, but keep getting the following error....
Error 1 The assembly 'Microsoft.Office.Tools.Common.v4.0.Utilities, Version=10.0.0.0,Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is not registered for COM Interop. Please register it with regasm.exe /tlb. ExcelAddIn1
I have checked the "register for Com interop" check box in the properties.
I am using visual studio 2012 and excel 2010.
Any help would be appriciated.
Cheers,
Chris
Install the Office 2010 Primary Interop Redistributable (there is none for later than 2010) from https://www.microsoft.com/en-us/download/details.aspx?id=3508
Open an Administrative Command Prompt
Run:
CD "C:\Program Files\Reference Assemblies\Microsoft\VSTO40\v4.0.Framework"
and then
"\windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe" /tlb Microsoft.Office.Tools.Common.v4.0.Utilities.dll
Rebuild your VS project, it should work now.
Download and install the MS Office Office 2010 Primary Interop Assemblies.
http://www.microsoft.com/en-us/download/details.aspx?id=3508
Depending on your solution you may need this as well: http://www.microsoft.com/en-us/download/details.aspx?id=20479
Open Visual studio command Prompt and register your dll as mentioned in the below format
regasm.exe /tlb
I am trying to build a simple addin for Word 2007 using Visual Studio 2010 and .NET 4.0. It's a relatively simple addin, which brings up a save dialog and saves the document as a Word 2003 document.
The addin runs fine in Word under Debug mode, but does not run under Release or when I create a setup project for it. (It does create the registry keys under HKCU\Software\Microsoft\Office\Word\Addins and they look to be correct) I don't get any errors, and the addin isn't listed under the Disabled Addins either.
I tried adding the Addin manually but it says that it isn't a valid addin. The version of Office is 32-bit, running under Windows 7 64-bit.
Or are there even any alternatives to using VSTO (VBA?) that will let me add a tab to the Ribbon?
You can use IRibbonExtensibility interface (http://msdn.microsoft.com/en-us/library/microsoft.office.core.iribbonextensibility.aspx) to avoid using VSTO.