Click here to Skip to main content
15,898,036 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionvb.net 2003 web-service, beyond the basics Pin
eggsarebad27-Oct-06 14:52
eggsarebad27-Oct-06 14:52 
QuestionSaving controls - urgent Pin
EvScott27-Oct-06 12:04
EvScott27-Oct-06 12:04 
AnswerRe: Saving controls - urgent Pin
mr_lasseter27-Oct-06 13:09
mr_lasseter27-Oct-06 13:09 
GeneralRe: Saving controls - urgent Pin
EvScott27-Oct-06 13:58
EvScott27-Oct-06 13:58 
AnswerRe: Saving controls - urgent [modified] Pin
OldWarhorse27-Oct-06 19:10
OldWarhorse27-Oct-06 19:10 
GeneralRe: Saving controls - urgent Pin
cstrader23228-Oct-06 5:35
cstrader23228-Oct-06 5:35 
GeneralRe: Saving controls - urgent Pin
OldWarhorse28-Oct-06 8:15
OldWarhorse28-Oct-06 8:15 
QuestionExcel Pin
Kschuler27-Oct-06 9:43
Kschuler27-Oct-06 9:43 
I have a program that puts data into a DataGridView. When the user clicks a button the data is converted into a .csv file and saved. Then my program will open the .csv file in Excel. I've done this by adding a reference to the Microsoft Excel 8.0 Object Library and using the following code:

Dim xlTmp As Excel.Application<br />
xlTmp = New Excel.Application<br />
xlTmp.Visible = True<br />
xlTmp.Workbooks.Open(strCSVLocation)


This code works fine, unless the user does not have Excel installed on their machine. I know I could require that the user have Excel before installation, but my program must work for users without Excel too. Basically if a user HAS Excel it should open it for the user. If the user does NOT have Excel, it should just save the file. I thought I could accomplish this by putting the Excel.Application code into a try-catch block, but I'm still getting an unhandled exception as soon as I hit the button to save the csv and open Excel.

How can I check programmatically if a user has Excel or not?
AnswerRe: Excel Pin
Rob Graham27-Oct-06 10:53
Rob Graham27-Oct-06 10:53 
QuestionUsing SaveFileDialog to backup database files Pin
dgibson553127-Oct-06 6:25
dgibson553127-Oct-06 6:25 
AnswerRe: Using SaveFileDialog to backup database files Pin
Kschuler27-Oct-06 9:54
Kschuler27-Oct-06 9:54 
QuestionHelp! Pin
Evalee27-Oct-06 5:32
Evalee27-Oct-06 5:32 
AnswerRe: Help! Pin
Colin Angus Mackay27-Oct-06 5:48
Colin Angus Mackay27-Oct-06 5:48 
GeneralRe: Help! Pin
Evalee27-Oct-06 5:54
Evalee27-Oct-06 5:54 
AnswerRe: Help! Pin
Dave Kreskowiak27-Oct-06 5:55
mveDave Kreskowiak27-Oct-06 5:55 
GeneralRe: Help! Pin
Evalee27-Oct-06 6:06
Evalee27-Oct-06 6:06 
GeneralRe: Help! Pin
Dave Kreskowiak27-Oct-06 6:17
mveDave Kreskowiak27-Oct-06 6:17 
GeneralRe: Help! Pin
Evalee27-Oct-06 6:23
Evalee27-Oct-06 6:23 
GeneralRe: Help! Pin
Dave Kreskowiak27-Oct-06 6:28
mveDave Kreskowiak27-Oct-06 6:28 
GeneralRe: Help! Pin
Evalee27-Oct-06 15:46
Evalee27-Oct-06 15:46 
GeneralRe: Help! Pin

MmM.net</

28-Oct-06 22:48

MmM.net</

28-Oct-06 22:48 
GeneralRe: Help! Pin
Tamimi - Code28-Oct-06 22:50
Tamimi - Code28-Oct-06 22:50 
QuestionFormat File Pin
jds120727-Oct-06 5:15
jds120727-Oct-06 5:15 
AnswerRe: Format File Pin
Guffa27-Oct-06 5:34
Guffa27-Oct-06 5:34 
AnswerRe: Format File Pin
Dave Kreskowiak27-Oct-06 5:35
mveDave Kreskowiak27-Oct-06 5:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.