Click here to Skip to main content
16,016,643 members
Home / Discussions / Web Development
   

Web Development

 
Questioncall javascript function on pop-up menu item or link Pin
pastecopy5-Jul-06 23:57
pastecopy5-Jul-06 23:57 
QuestionRTF Applet Pin
Maher Abu Zer5-Jul-06 22:06
professionalMaher Abu Zer5-Jul-06 22:06 
AnswerRe: RTF Applet Pin
theJazzyBrain5-Jul-06 23:00
theJazzyBrain5-Jul-06 23:00 
GeneralRe: RTF Applet [modified] Pin
Maher Abu Zer5-Jul-06 23:45
professionalMaher Abu Zer5-Jul-06 23:45 
GeneralRe: RTF Applet Pin
theJazzyBrain7-Jul-06 1:33
theJazzyBrain7-Jul-06 1:33 
QuestionThis is kinda noob for me to ask this but... [modified] Pin
Neo_Odin5-Jul-06 20:47
Neo_Odin5-Jul-06 20:47 
AnswerRe: This is kinda noob for me to ask this but... Pin
kanes5-Jul-06 21:11
kanes5-Jul-06 21:11 
QuestionQueryInterface for interface Microsoft.Office.Interop.Excel._Application failed Pin
kavithapuranik5-Jul-06 20:28
kavithapuranik5-Jul-06 20:28 
Hi,

im developing a web application using vb.net,where in im creating an excel sheet ,fillin the cells and saving it,
im using windows 2000,and i have installed office 2003.
in my application i have added reference to Excel and microsoft.office.core

in the code ,im using
Imports Excel = Microsoft.Office.Interop.Excel

and in page load ,i have wriiten
Dim excelobj As New Excel.Application
Dim xlBook As Excel.Workbook
Dim xlsheet As Excel.Worksheet
Dim i As Int32

Dim xlApp As Excel.Application
Dim xlBook As Excel.Workbook
Dim xlSheet As Excel.Worksheet
xlApp = CreateObject("Excel.Application")
xlBook = CType(xlApp.Workbooks.Add, Excel.Workbook)
xlSheet = CType(xlBook.Worksheets(1), Excel.Worksheet)

xlSheet.Cells(2, 2) = "This is column B row 2"
xlSheet.Application.Visible = True
xlSheet.SaveAs("C:\Test.xls")
xlApp.Quit()
xlApp = Nothing


im not getting any error when i compile ,but during execution,i get
"QueryInterface for interface Microsoft.Office.Interop.Excel._Application failed."


Exception Details: System.InvalidCastException: QueryInterface for interface Microsoft.Office.Interop.Excel._Application

failed.

Execption occurs here
xlBook = CType(xlApp.Workbooks.Add, Excel.Workbook)


pls help

thanks

kavitha
QuestionOO Javascript Pin
CoolASL5-Jul-06 20:09
CoolASL5-Jul-06 20:09 
AnswerRe: OO Javascript Pin
Guffa5-Jul-06 22:05
Guffa5-Jul-06 22:05 
GeneralRe: OO Javascript Pin
CoolASL5-Jul-06 22:14
CoolASL5-Jul-06 22:14 
AnswerRe: OO Javascript Pin
Guffa5-Jul-06 23:36
Guffa5-Jul-06 23:36 
Questionproblems with getting Front Page 98’s hover buttons Pin
miss_aries5-Jul-06 19:55
miss_aries5-Jul-06 19:55 
QuestionFront Page 98 hover buttons problem..need help [modified] Pin
MiSs.colly_cool5-Jul-06 19:39
MiSs.colly_cool5-Jul-06 19:39 
QuestionProblem with hover buttons [modified] Pin
kanes5-Jul-06 19:26
kanes5-Jul-06 19:26 
AnswerRe: Problem with hover buttons Pin
Neo_Odin5-Jul-06 19:55
Neo_Odin5-Jul-06 19:55 
GeneralRe: Problem with hover buttons Pin
Luqme5-Jul-06 20:59
Luqme5-Jul-06 20:59 
QuestionWeb Service Deployment Pin
vikashparida5-Jul-06 11:46
vikashparida5-Jul-06 11:46 
QuestionInternet explore not showing images [modified] Pin
theprinc5-Jul-06 7:54
theprinc5-Jul-06 7:54 
AnswerRe: Internet explore not showing images Pin
Guffa5-Jul-06 9:17
Guffa5-Jul-06 9:17 
Questionproblem in capturin co-ordinates in IE with scroll bars Pin
navtejdhillon5-Jul-06 6:25
navtejdhillon5-Jul-06 6:25 
AnswerRe: problem in capturin co-ordinates in IE with scroll bars Pin
navtejdhillon5-Jul-06 6:47
navtejdhillon5-Jul-06 6:47 
QuestionClient info Pin
TintinV3ck5-Jul-06 3:24
TintinV3ck5-Jul-06 3:24 
AnswerRe: Client info Pin
Guffa5-Jul-06 4:11
Guffa5-Jul-06 4:11 
GeneralRe: Client info Pin
TintinV3ck5-Jul-06 20:18
TintinV3ck5-Jul-06 20:18 

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.