Click here to Skip to main content
15,900,110 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionConsole.Write to TextBox Pin
japel18-Nov-06 10:38
japel18-Nov-06 10:38 
AnswerRe: Console.Write to TextBox Pin
Guffa18-Nov-06 13:43
Guffa18-Nov-06 13:43 
AnswerRe: Console.Write to TextBox Pin
Christian Graus18-Nov-06 13:43
protectorChristian Graus18-Nov-06 13:43 
QuestionProblem in migration from vs.net 2003 to vs.net 2005 Pin
Thampi18-Nov-06 6:07
Thampi18-Nov-06 6:07 
AnswerRe: Problem in migration from vs.net 2003 to vs.net 2005 Pin
Christian Graus18-Nov-06 8:36
protectorChristian Graus18-Nov-06 8:36 
GeneralRe: Problem in migration from vs.net 2003 to vs.net 2005 Pin
Thampi18-Nov-06 12:20
Thampi18-Nov-06 12:20 
GeneralRe: Problem in migration from vs.net 2003 to vs.net 2005 Pin
Christian Graus18-Nov-06 12:55
protectorChristian Graus18-Nov-06 12:55 
QuestionBuild Error Pin
culbysl18-Nov-06 4:27
culbysl18-Nov-06 4:27 
I'm having a strange problem declaring a NEW Excel.Application. I get a blue line under the line xlApp = New Excel.Application(). When I hover over the line the error states "'New' cannot be used on an interface.". I'm a little confused with the interface reference. I have referenced Excel, and MicrosoftOffice.Core and imported them on the page. The problem code is below.

Imports Microsoft.Office
Imports Excel
Imports Microsoft.VisualBasic
Imports Microsoft.Win32

Dim xlApp As Excel.Application
Dim xlWB1 As Excel.Workbook
xlApp = New Excel.Application() <----- Line with Error "'New' cannot be used on an interface."
xlApp.Visible = True
xlWB1 = xlApp.Workbooks.Open(strPath)
xlWB1 = Nothing

I am using the same code to open Word docs and PowerPoint presentations.

Any suggestions would be very welcome.

Thanks in advance
AnswerRe: Build Error Pin
Colin Angus Mackay19-Nov-06 2:41
Colin Angus Mackay19-Nov-06 2:41 
GeneralRe: Build Error Pin
culbysl19-Nov-06 4:19
culbysl19-Nov-06 4:19 
AnswerRe: Build Error Pin
Colin Angus Mackay19-Nov-06 2:46
Colin Angus Mackay19-Nov-06 2:46 
QuestionCreate new control on main form from plugin Pin
cstrader23218-Nov-06 2:44
cstrader23218-Nov-06 2:44 
AnswerRe: Create new control on main form from plugin Pin
Christian Graus18-Nov-06 8:37
protectorChristian Graus18-Nov-06 8:37 
GeneralRe: Create new control on main form from plugin Pin
cstrader23218-Nov-06 8:43
cstrader23218-Nov-06 8:43 
QuestionDownload Files Pin
softwarejaeger18-Nov-06 2:39
softwarejaeger18-Nov-06 2:39 
AnswerRe: Download Files Pin
Guffa18-Nov-06 17:38
Guffa18-Nov-06 17:38 
GeneralRe: Download Files Pin
softwarejaeger18-Nov-06 23:56
softwarejaeger18-Nov-06 23:56 
GeneralRe: Download Files Pin
Guffa19-Nov-06 23:58
Guffa19-Nov-06 23:58 
GeneralRe: Download Files Pin
softwarejaeger20-Nov-06 1:58
softwarejaeger20-Nov-06 1:58 
AnswerRe: update problem in datagrid when using SQL Server 2000 as Database Pin
Dave Kreskowiak18-Nov-06 5:24
mveDave Kreskowiak18-Nov-06 5:24 
QuestionI cant a Button control with two images status >> Pin
kindman_nb17-Nov-06 22:53
kindman_nb17-Nov-06 22:53 
AnswerRe: I want a Button control with two images status >> Pin
kindman_nb17-Nov-06 23:06
kindman_nb17-Nov-06 23:06 
AnswerRe: I cant a Button control with two images status >> Pin
Christian Graus17-Nov-06 23:07
protectorChristian Graus17-Nov-06 23:07 
AnswerRe: I cant a Button control with two images status >> Pin
MohammadAmiry17-Nov-06 23:07
MohammadAmiry17-Nov-06 23:07 
Questionvb.Net vs SQL Sever Datatypes Pin
RichardBerry17-Nov-06 21:48
RichardBerry17-Nov-06 21:48 

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.