Project 'MyProject' Requires A Reference To Version '14.0.0.0' Of Assembly 'Microsoft.Office.Interop.Excel'
Apr 14, 2011
I have Visual Studio 2010 and a VB Project that had a reference to Microsoft.Interop.Excel 12.0. Well recently I changed the reference version to 14.0. That was actually a mistake and now I need to bump it back down to version 12.0. However I get this error in my project now...
Project 'MyProject' requires a reference to version '14.0.0.0' of assembly 'Microsoft.Office.Interop.Excel', but references version '12.0.0.0'
of assembly 'Microsoft.Office.Interop.Excel'.
I tried removing references and adding the com object to, but no avail.
View 1 Replies
ADVERTISEMENT
Apr 16, 2010
I have a program that reads data from excel.
I use:Imports Microsoft.Office.Interop as well as a Reference from the "COM" tab called "Microsoft Excel 11.0 Object Library"
I built my program then copied the .exe from the inDebug folder to a location on my company's server. I then double clicked the .exe and it ran as I expected it would.My boss then tried (from another computer) and he gets this error:See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
[Code]...
View 14 Replies
Nov 22, 2011
I have been doing a lot of reading on this topic and most folks seem to agree that having Excel is required to use the COM Interop libraries. However they are never specific as to where that should be installed. Does it need to be installed on the machine I am developing on or does it need to be on every machine that I deploy to?
Edit: I should mention that this is desktop development/deployment targeted for all Windows machines.
View 3 Replies
Aug 5, 2010
Basically I've coded an Excel 2007 project in VB.NET 2010 that allows you to create charts with a fair amount of interactivity. I want the user to be able to save and reopen this workbook and still have that interactivity in any already-created charts, so they don't have to re-create them.
When I create the charts, I use Sheet1.Controls.AddChart(...), which returns a Microsoft.Office.Tools.Excel.Chart with which I can handle events and such. However, when I reopen the file and look through the Sheet1.Controls collection, there are no Chart objects. Accessing the charts through Sheet1.ChartObjects.Chart gives me Interop Charts, when I need the Tools Charts.
View 2 Replies
Feb 16, 2011
have a Visual Basic 2008 project with references to Microsoft.Office.Interop.Excel and Microsoft.Office.Interop.Access for Office 12/Office 2007. I also have Office 2007 installed on my PC. I tried running my program on a PC which has Office 2003installed (i installed the compatibility pack to open .xlsx files) and the Access Database Engine for .accdb Databases.It does not have VS2008 installed but has .Net Framework 3.5 SP1 installed.
View 10 Replies
Feb 25, 2010
I need to create an excel file from the database records. I fetched and put the data in an excel file and tried to save that file as follows.
[Code]...
View 1 Replies
Oct 11, 2011
how can i get Excel Worksheet title from an excel process already running on user machine using Microsoft.Office.Interop.Excel.
Actually, I have to implement this in windows service and Process.GetMainWindow title is not working with VB.Net service thats why i am looking for some solution thru Microsoft.Office.Interop.Excel.
View 3 Replies
May 16, 2012
I am in need to get Excel Sheet name and current Column and Row, I have theActiveSheet.Name working but unsure how to get Column and Row
Private Sub ButtonTab_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonTab.Click
Dim MyExcel As New Excel.Application
[code].....
View 18 Replies
Feb 19, 2012
I'm wondering if you can use the Microsoft.Office.Interop.Excel in a windows service application type.
I've a windows form application which opens an Excel file and do some actions and save it as another file. All this is working perfect in windows forms. When I copy the same code and paste it in a windows service, then it is not possible to open the file even.
I receive the following error message:
[Code].....
View 2 Replies
May 25, 2012
I have code that will plus Row but need help with pluse column.Full code snippets:
Imports Microsoft.Office.Interop
Public Class Form1
Private Sub ButtonTab_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonTab.Click
Dim MyExcel As New Excel.Application
[code]....
View 2 Replies
Mar 9, 2010
Application' is ambiguous in the namespace 'Microsoft.Office.Interop.Excel
View 12 Replies
Jan 19, 2010
I added: import microsoft.office.interop.excel and I suddenly got this error:" 'checkedchanged'is not an event of 'microsoft.office.interop.excel.checkbox'"
for each cb2 as checkbox in thechecks
addhandler cb2.checkedchanged,addressof checkpress
next
it erroreed on the cb2.checkedchanged part and this code has worked before. however once I add the import it errors. what namespace am I supposed to put it under?
View 8 Replies
Oct 7, 2009
When I try to install an application to another user's computer I receive a message box that says "Unable to run or install application. The application requires that assembly Microsoft.SqlServer.Pipelinehost version 9.0.242.0 be installed in the global assembly cache (GAC) first.A key feature of the app is to export data from sql server to an excel spread sheet so I have the following import statements
View 3 Replies
May 1, 2011
I'm using Microsoft.Office.Interop.Excel in VB.Net in order to export an .xls file as a .pdf file. This was the only method I could find without relying on third party software to be installed on the running machine or using an expensive add-on to Visual Studio. This method requires opening excel and saving a file through the code.
My problem is that I only have a trial version of Microsoft office as I never actually use it. Well the limitation of times I can open it is up as I have run the program enough times for debugging purposes and now I can't continue development on this application. Is there a development kit for visual studio that provides the API I need for this functionality without actually having Office installed? I don't need Microsoft Office so I don't want to have to buy a full version just to develop and test an application.
I've looked at some options like this, but there is very specific formatting that needs to remain intact in the .xls for the conversion to .pdf that doesn't seem to work if I use an intermediary format. I've also read a little bit about the openOffice API, but is that compatible with .Net? If so, can someone point me to a tutorial that explains how to use the API with .Net? Specifically VB if possible, but I can work with C# code.
[Code]....
View 3 Replies
Jul 23, 2010
So I have this error.
[Code]...
So I'm guessing it has something to do with the fact that I don't have office loaded on my computer. Now I have another laptop, with office that I loaded this project on, and it works fine. So do I have to load office on this computer, or can I just reference something?
[Code]...
View 8 Replies
Aug 29, 2011
I am using the Microsoft.Office.Interop.Excel library in VB.Net on an excel sheet that is protected. All of the protected settings are working fine except that I cannot set Select Locked Cells which shows when you are using the Excel protect sheet interface but I cannot see how to set this to false using the library. I have tried all of the different values in the protect method but none of them toggle the value.Excel protected sheet menu Below is the code snippet I am using to get my workSheet, populate some values, and then protect the sheet. GetWorkSheet is an internal method which will return a WorkSheet object, and invoiceData is a datatable which has the data which is being added to the spreadsheet.
Dim newSheet As Worksheet = getWorkSheet(newSheetName)
' Make the current Work Sheet active so that it will be accepting the data.
newSheet.Activate()
newSheet.Unprotect(sheetPassword)
[code]...
View 2 Replies
Mar 29, 2010
Error2'KeyUp' is not an event of 'Microsoft.Office.Interop.Excel.TextBox'. how can i fix this error
View 12 Replies
Nov 4, 2009
Error2'KeyUp' is not an event of 'Microsoft.Office.Interop.Excel.TextBox'.
View 6 Replies
Oct 6, 2009
I'm trying to upgrade a VB6 app to VB 2008. I have read the article in the tutors corner about automating Excel from VB but I cannot get it to work. Heres what I have done:
1) set a reference to the Microsoft Excel 12.0 Object Library
2) Added "Imports Excel = Microsoft.Office.Interop.Excel" to the top of the module
3) in a routine I have added: Dim X As New Excel.Application Here's where I get an error: Error 75 'Application' is ambiguous in the namespace 'Microsoft.Office.Interop.Excel'.
View 6 Replies
Sep 1, 2010
I have a project which opens a simple Excel file and populates it. It was working fine until this morning, when it has suddenly started giving me the error above: 'Application' is ambiguous in the namespace 'Microsoft.Office.Interop.Excel'.I haven't changed any project references, or anything within the file itself. The references include Microsoft.Office.Interop.Excel. The imports statement is there: importsMicrosoft.Office.InteropThe object declaration is also complete: Dim xl AsMicrosoft.Office.Interop.Excel.Application which is the line that's giving me the error!
View 2 Replies
May 12, 2012
Imports Microsoft.Office.Interop.Excel
[Code]...
View 3 Replies
Feb 4, 2010
Getting follwoing error while installing ClickOnce VB.net application"
"the application requires that assembly System.Net Version 3.5.0.0 be installed on GAC"
View 2 Replies
Apr 15, 2011
Just got this message today on user machines when pushing out an update to a ClickOnce VB.NET application.No new references have been added, just some bug fixes.
System Update Required Unable to install or run the application. The application requires that assembly Microsoft.Vbe.Interop Version 14.0.0.0 be installed in the Global Assembly Cache (GAC) first.Note that this is only happening in XP machines, not Win 7.
View 1 Replies
Nov 5, 2010
I have been using Excel in vb.net for years and no problem but I have a new app and nothing is working. First I can't get Microsoft.office.interop referenced anywhere, which was weird. Then I can't instantiate Excel App.. Dim pExcel_App as New Excel.Application -- this gives me error "New cannot be used on an interface??But I can do this..Dim pExcel_App As New Excel._ExcelApplication -- where did this come from?Then I can't put anything into cells Dim wkbSheet As Excel.Worksheet wkbSheet.Cells(1,1) = "Title" --- this give me an error "Expression is a value and therefore cannot be the target of an assignment"
THe really weird thing is that I have an old app open at the same time that is just fine with all this code. AND the intellisense is different for each cell.The good one sets is as a range, the bad one says it is an object???I re-installed the MS PIA's but this didn't help.
View 4 Replies
Apr 22, 2010
I am working on an application which compiles fine on machine that is Win 7 and 64 bit CPU. But when copy and I run the exe file on similar machine (Win 7 64bit) I get error message: Error: Could not load file or assembly 'Interop.ActiveDs.Version=1.0.0.0,... I have added ActiveDS Type Library 1.0 C:WindowsSysWow64activedstlb as a reference in the project file.
[Code]...
View 4 Replies
Dec 23, 2011
i have created a application that uses office outlook. my development machine has office 2010. now when i try to install the application on a computer that has office 2007 i am getting an error that says i should install office.interop.outlook version 14.0.0.0 in the global assemblies cache.
View 3 Replies
Sep 2, 2010
I am working on a legacy VB.NET application that uses Microsoft.Office.Interop.Word, with Office 2003 installed on the server. When I publish my site, even though my config file clearly shows v11: The site will crash saying v12 couldn't be found: Could not load file or assembly 'Microsoft.Office.Interop.Word, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Note: I currently have Office 2003 & 2007 installed on my dev machine, also, when looking @ references I am given the option of selecting v11 or v12 (so v11 is def. there). Within a page on the site the page does an import statement for Microsoft.Office.Interop.Word. Is it possible to specify the version at this point, or any way to force it to use v11 without me uninstalling my v12?
View 1 Replies
Jun 27, 2009
I have problem when i use DTS package in my Application which I use VB.net .when i install the Application in the client and run it the are message appear :" could not load file or assembly ' interop.DTS,version=2.0.0.0,cultral,publickeytoken=null'or one of its dependencies . the system cannot find the file specified " In my PC run successfuly but in the client the previous?
View 1 Replies
May 20, 2012
I am able to insert a textbox into a Word document using the below code:
Dim opProcedures As Word.Shape
opProcedures = oDoc.Shapes.AddTextbox(Microsoft.Office.Core.MsoTextOrientation.msoTextOrientationHorizontal, 0, 0, 456.75, 24.75)
opProcedures.TextFrame.TextRange.Text = "Operational Procedures"
This adds a textbox to the first page of the document however even when I change the first (top) parameter I am unable to move the textbox onto the second page (only lower down onto the 1st page, any greater values than the height of the first page an it disappears).
How can I get the textbox to appear on the 2nd page of the document?
View 1 Replies
Dec 9, 2010
I have written a program in which I have import
Imports
Now when I write
Application.Exit()
It show error
Exit is not a member of Microsoft.Office.Interop.Outlook
View 5 Replies