|
-
Jun 24th, 2009, 11:34 AM
#1
Thread Starter
Member
Word and Excel not installed on machine
Hail to All,
I was wondering is there any way to open and read and write and save to Excel and word documents in a program if the machine that is being run on does not have either of thies apps installed. Are there files that I can include in my application that it could be worked on in my application and not need word or excel?
Thanks for all your help
Mythos
-
Jun 24th, 2009, 11:36 AM
#2
Re: Word and Excel not installed on machine
No you will need these programs on the system.
-
Jun 24th, 2009, 12:20 PM
#3
Re: Word and Excel not installed on machine
I don't know the code, but there is a way to see if the computer your application is being installed on has those applications installed.
I'm sure you can Google it and find it.
CodeBank contributions: Process Manager, Temp File Cleaner
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
-
Jun 25th, 2009, 11:46 AM
#4
Re: Word and Excel not installed on machine
I use something like this
vb.net Code:
Imports Microsoft.Win32
Public Class Form1
Public Function IsAppInstalled(ByVal AppName As String) As Boolean
Dim strSubKey As String = String.Empty
Select Case AppName.ToUpper
Case "ACCESS"
strSubKey = "Access.Application"
Case "EXCEL"
strSubKey = "Excel.Application"
Case "WORD"
strSubKey = "Word.Application"
End Select
Dim objKey As RegistryKey = Registry.ClassesRoot
Dim objSubKey As RegistryKey = objKey.OpenSubKey(strSubKey.ToUpper)
Return Not objSubKey Is Nothing
objKey.Close()
End Function
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If IsAppInstalled("Excel") = True Then
MessageBox.Show("Yep, it is here")
Else
MessageBox.Show("Nope...you gotta install it.")
End If
End Sub
End Class
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|