Click here to Skip to main content
15,900,254 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionError opening Word Document in Asp.Net Pin
vyasdev200921-Apr-09 0:12
vyasdev200921-Apr-09 0:12 
AnswerRe: Error opening Word Document in Asp.Net Pin
Ashfield21-Apr-09 1:46
Ashfield21-Apr-09 1:46 
QuestionUnable to Fix The hight of Table cotrol in Report viewer (RDLC) Pin
Member 226432921-Apr-09 0:10
Member 226432921-Apr-09 0:10 
QuestionIIS and Tomcat Pin
jchandramouli20-Apr-09 22:46
jchandramouli20-Apr-09 22:46 
QuestionImport data from excel cell to Textbox Pin
samsonx20-Apr-09 21:58
samsonx20-Apr-09 21:58 
AnswerRe: Import data from excel cell to Textbox Pin
Greg Chelstowski21-Apr-09 0:28
Greg Chelstowski21-Apr-09 0:28 
GeneralRe: Import data from excel cell to Textbox Pin
krishna_goluguri7-Jul-10 23:27
krishna_goluguri7-Jul-10 23:27 
QuestionUnable to cast COM object of type 'Word.ApplicationClass' to interface type 'Word._Application'. Pin
abyvjohnmca20-Apr-09 21:21
abyvjohnmca20-Apr-09 21:21 
I am dealing with word automation in asp.net 2.0 and when i am debugging my web application in VS in XP OS it is quite fine running. Then I deployed this site into server (OS is Windows 2000 advanced server) where I met with problem. So I installed VS 2005 in this server and I debugged where I got this error..
Unable to cast COM object of type 'Word.ApplicationClass' to interface type 'Word._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00020970-0000-0000-C000-000000000046}' failed due to the following error: Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)).
If anyone helps to solve my problem that would be appreciable as I have been struggling with this problem for last week.
I have office 2000 premium in my server machine as well.

I give my coding part also here,

public class WordApp
{


private Word.Application oWordAppl;

private Word.Document oDoc;


public WordApp()
{

oWordAppl = new Word.Application();

}



public Word.Document Open(string strFileName)

{
try
{

object fileName = strFileName;

object readOnly1 = false;

object isVisible = true;

object missing = System.Reflection.Missing.Value;


oDoc = (Word.Document)oWordAppl.Documents.Open(ref fileName, ref missing, ref readOnly1,
ref missing, ref missing, ref missing, ref missing, ref missing,
ref missing, ref missing, ref missing, ref isVisible);
/*Above line i am gettin error {"Unable to cast COM object of type 'Word.ApplicationClass' to interface type 'Word._Application'.
This operation failed because the QueryInterface call on the COM component for the interface with IID
'{00020970-0000-0000-C000-000000000046}' failed due to the following error: Library not registered.
(Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))."}
*/


}
catch (Exception ex)
{
throw ex;
}
finally
{
//object missing = System.Reflection.Missing.Value;
//oWordAppl.Documents.Close(ref missing, ref missing, ref missing);
}

return oDoc;

}
}
QuestionHow we can fetch a textbox value when an enter key is pressed ? Pin
Masood Kochi,SSF20-Apr-09 21:15
Masood Kochi,SSF20-Apr-09 21:15 
AnswerRe: How we can fetch a textbox value when an enter key is pressed ? Pin
N a v a n e e t h20-Apr-09 21:57
N a v a n e e t h20-Apr-09 21:57 
AnswerRe: How we can fetch a textbox value when an enter key is pressed ? Pin
jai_10121-Apr-09 1:42
jai_10121-Apr-09 1:42 
Questionview html source code - asp.net Pin
Manish Thaduri20-Apr-09 20:35
Manish Thaduri20-Apr-09 20:35 
AnswerRe: view html source code - asp.net Pin
N a v a n e e t h20-Apr-09 20:39
N a v a n e e t h20-Apr-09 20:39 
General[Message Deleted] Pin
Manish Thaduri20-Apr-09 20:42
Manish Thaduri20-Apr-09 20:42 
GeneralRe: view html source code - asp.net Pin
N a v a n e e t h20-Apr-09 20:56
N a v a n e e t h20-Apr-09 20:56 
General[Message Deleted] Pin
Manish Thaduri20-Apr-09 21:06
Manish Thaduri20-Apr-09 21:06 
GeneralRe: view html source code - asp.net Pin
N a v a n e e t h20-Apr-09 22:19
N a v a n e e t h20-Apr-09 22:19 
Question[Message Deleted] Pin
Manish Thaduri20-Apr-09 22:45
Manish Thaduri20-Apr-09 22:45 
AnswerRe: view html source code - asp.net Pin
N a v a n e e t h20-Apr-09 23:46
N a v a n e e t h20-Apr-09 23:46 
JokeRe: view html source code - asp.net Pin
Ashfield21-Apr-09 1:50
Ashfield21-Apr-09 1:50 
QuestionSharepint connector Pin
Ch.Gayatri Subudhi20-Apr-09 20:20
Ch.Gayatri Subudhi20-Apr-09 20:20 
QuestionDisable the Back button from Browser Pin
sekannak20-Apr-09 19:59
sekannak20-Apr-09 19:59 
AnswerRe: Disable the Back button from Browser Pin
N a v a n e e t h20-Apr-09 20:05
N a v a n e e t h20-Apr-09 20:05 
AnswerRe: Disable the Back button from Browser Pin
khatri0321-Apr-09 3:50
khatri0321-Apr-09 3:50 
AnswerRe: Disable the Back button from Browser Pin
Deshbir Singh21-Apr-09 8:13
Deshbir Singh21-Apr-09 8:13 

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.