Determine The Office Service Pack?
May 29, 2011Anyone have working code which can determine the Office versions from 2003 to 2010 and the ServicePacks installed for each?
View 3 RepliesAnyone have working code which can determine the Office versions from 2003 to 2010 and the ServicePacks installed for each?
View 3 RepliesI know how to use My.Computer.Info.OSFullName to get the version of the OS. How would I go about getting the Service Pack version?
I need this to work on all versions of Windows.
Also, is there a way to check and see if the activation has been successfully completed?
Is there a Service Pack 1 for Visual Studio 2005 (Professional Edition)? The only one I see is for Team something or other....
View 3 RepliesI am not sure how to do this, I need to output what service pack is installed on a windows 7 machine along with what antivirus is installed. Any idea on how I would get that information using VB?
View 5 RepliesI can get the current version of the os but i cannot get its service pack.
Dim OSSP As String = (Environment.OSVersion.ServicePack) Is what i tried using but i get nothing
How do i show the current OS and Service pack of a machine.
If i use
Dim OS As String = (Environment.OSVersion.VersionString)
on my vista machine it shows up as Microsoft Windows NT 6.0.6000.0
I want to check the service pack of my vs2008 but i find this:where is the service pack version gone How to check the service pack of my vs2008?
View 21 RepliesI had no errors in my VB project it was compiling nicely. I loaded SP 1 today and now I have 102 errors. Actually I'm sure more than that as 102 is the max it will show. It particularly doesn't like the date functions and isDBNull. And it balks at vbcrlf now. Here are some examples of the errors I'm getting:
[Code]...
I am writing a service (service.exe) which I will be installing multiple times on a server with different display names (service1, service2,... servicen).Based on the display name the service will perform slightly different operations (e.g. monitor a different COM port).How can I programmatically determine the display name to find out which instance is executing?
View 6 RepliesI'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].....
i have a Windows service that is hosting a WCF service through net.tcp and this is working great. I have also created a WCF service application. I am trying to add the net.tcp service reference to the service application. Then I add it to the GAC that goes ok but if I try to RegAsm the WCF service application to allow it to be called from Server.CreateObject I get the error:
Warning: Type library exporter encountered a type that derives from a
generic class and is not marked as
[ClassInterface(ClassInterfaceType.None)]. Class interfaces cannot be
exposed for such types. Consider marking the type with
[ClassInterface(ClassInterfaceType.None)] and exposing an explicit
interface as the default interface to COM using the
ComDefaultInterface attribute.
It does not work. I have tried to call it through a class library but this does not work either as the end point is not set correctly.
We have currently upgraded our development machines to Windows 7 and Office 2007. We have a vb 2008 app that references 2003 Office components to use for mail-merging to word.We loaded up our app in the vb environment today and were instantly greeted with missing components/functions which are related to the 2003 Office components. We can update these to use the Office 2007 components/functions instead, however we are unsure whether after doing this our vb app will work with machines only with Office 2003 on. can machines with Office 2003 on work with our vb app that references Office 2007 components?
View 5 Repliesi was wondering if someone could give me the final explanation on what i might be doing wrong here.I spent a lot of time reading around the net and the forum about how to add Threading capabilities to a VB project.
Nos, i've got .NET 4 installed, and i've added the system.tsr and mscorlib.dll files as reference in, say, Excel 2007 (see screenshot).However, when i try to make a thread with anything as basic as "Dim Thread1 As System.Threading.Thread", i get a user-defined type not found error.Indeed, when i use the object browser to see what's in the System file, theres nothing remotely linked to any Threading, and in the mscorlib file, nothing under "Threading" either, just a few Thread related functions, but nothing defining a data type
I've developed shared addin for Microsoft Word. I distribute this addin with my application and using Inno setup for installation. The Inno setup installs my application and then runs "myAddin.msi" file in order to install addin.
how to uninstall this addin programatically?
Right now, in order to uninstall addin, the user has to to it manually through control panel.
I have a VB2008 application which can control a windows service i.e. start, stop, pause etc. This runs ok on a Windows XP machine but not on a Win 7 machine (message is - Service error cannot open <service name> service on computer '.') ( if I stop the UAC then it runs ok ). It seems to be a rights issue,
View 3 Replieshow do i use the webbrowser to display the word or excel docs. just like the pdf viewer... i tried the webrowser1.navigate but it didnot work, if it does its opening a new window, im using office 2010..
View 4 RepliesHow do I use the webbrowser to display the word or excel docs. just like the pdf viewer. I tried the webrowser1.navigate but it didnot work, if it does its opening a new window, I am using office 2010.
View 1 RepliesI've made Add-in for Word 2007 in VS2005.It worked well with Word 2007 and now it works well with Word 2010 32 bit.However it doesn't work with Word 2010 64 bit. The installation is successful, but the ribbon button doesn't show up.
Do you have any experience with add-ins for Office 64 bit?
I have used VB.NET and Microsoft Offices Interop to create an application that will run on a server and will print files for different users.My problem is that I need to find a way to impersonate different users so that when MS Word opens and prints, the resulting print job is recorded under that user. I found this link that lets you run .net code as a different user - unfortunately it doesn't work with this code. The username recorded is still the user that is logged on the server.Code Removed by moderator. Any ideas how I can make the Office app I'm automating run under a different user to the .net program that is calling it?
View 2 RepliesI would like to create Shared add-in that works with Word, Excel, Outlook and Power Point. I've found nice article that provides step by step instruction for creating shared add-in for Word: [URL] I've followed instructions and it worked. However, I am looking for a way to create one add-in that works with Word, Excel, Outlook and Power Point, not only Word. I didn't find any reference on the WEB.
View 7 RepliesI'm currently writing a small app that uses sqlite database.there's is system.web.sqlite.dll required to use this database and it isn't installed with .net framework by default.My client wants his app to be only 2 files (.sqlite database + exe file) with no additional DLLs etc.How to pack this DLL into exe?I tried adding this to resources and creating this file dynamically when the form loads, but it didn't worked.
View 6 Repliesi need to add framework3.5 with my application insatalation pack (.msi)so i don't let the customer download framework3.5 from internet i have to add the gframework3.5 with msi
View 11 Repliescomponent id for Visual Basic Power Pack 3.0.I need to determine if or not it is installed on my system for my setup.
View 3 RepliesThere's plenty of examples out there for other languages. Are there any examples for vb.net?
View 1 Repliesi am trying to get the value from this code:
<DIV id=lcm_simlive_countdown>00 Days, 06 Hours, 40 Minutes, 35 Seconds</DIV>
I have tried the following to do so:
Dim theVidURL As String = doc.DocumentNode.SelectSingleNode("//DIV[@id='lcm_simlive_countdown']").Attributes("value").Value
But it tells me Object reference not set to an instance of an object.
How to pack mine program ..to be protected from edit with Resource Hacker or Hex ?
View 1 RepliesI'm compiling and testing the VB programs in a download from MS of the Windows API Code Pack at url...(which is in VS 2008 and needs to be converted to run on VS 2010). So far I've resolved most of the issues, but a couple are baffling.The code as downloaded for the Taskbar demo refers to icons in the project resources as My.Resources.Green and My.Resources.Yellow and Red. Fatal errors, even though all the help pages say this is the correct way to access them. I got the build to run by removing the "My."; has there been a syntax change between VS 2008 and 2010? When I run the app, I get a message from TaskbarDemo.vshost.exe which says "This demo application needs to register .txt files as associated files to properly execute the Task related features. Filetype is not registered." Does that mean that in trying to debug the app, I have to modify the registry to associate the test program with the .txt filetype?
View 4 RepliesSo 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]...
I have to pack and unpack a 16bit Int from/into a Ushort in VB.net This is how I thought I could do it (doesn't work, gives me overflow exception)
'Pack Int16 into ushort '
Dim usPacked = CType(Data, UShort)
'unpack Int16 from ushort '
Dim unpacked = CType(data,Int16)
I've been trying to find the Feature Pack for Visual Basic 2008, but all I seem to be able to find in the one of C++.
View 1 Replies