CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_web_developer_2005_express Tags:
Item Type: NewsGroup Date Entered: 1/16/2006 4:38:14 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 34 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
L.Good
Asp.Net User
In over my head here, using a COM object in VWD20051/16/2006 4:38:14 PM

0/0

Don't know if this is the right group or not but any how. I found this Automation stuff for Word at this site. The Code Project. Your visual Studio .Net homepage. I followed all the directions on the page, downloaded the example and it works fine. Did the COM referance thing and all seemed fine, but it doesn't work. I'm not even into this COM stuff so as the subject says I'm in over my head here. This is what I have for an error code: 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: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)). The line with the asterik * is where the errro occurs. This is the routin that I made to access this. Had to change the number of Ref's for Word V 9.0 to 12.

protected void WordBtn_Click(object sender, EventArgs e)
{
object fileName = @"F:\Forms\ASM_Danville_7new.rtf";
object readOnly = false;
object isVisible = true;
object missing = System.Reflection.Missing.Value;
Word.ApplicationClass oWordApp = new Word.ApplicationClass();
* Word.Document oWordDoc = oWordApp.Documents.Open(ref fileName, ref missing,ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible);
//, ref isVisible,
//ref missing,ref missing,ref missing,
//ref missing,ref missing,ref missing,);
oWordDoc.Activate();
}

Interesting to me is the fact that it will work from the IDE. It creates 2 instances of Word in the Task Manager, but it does open and displays my file. So can any one tell me how to possibly fix this or what I need to do. These are the files created in the Bin directory: Interop.Microsoft.Office.Core.dll Interop.Office.dll Interop.VBIDE.dll Interop.Word.dll
Mikhail Arkhipo
Asp.Net User
Re: In over my head here, using a COM object in VWD20051/19/2006 4:30:18 AM

0/0

The difference from running within IDE (or from client application for that matter) and running from ASP.NET application is security settings. ASP.NET process does not have as much privileges as even normal user process (leave alone administrator). You have to allow ASP.NET process to access Office application folders and open files which are located outside Web.

Look at

http://channel9.msdn.com/wiki/default.aspx/SecurityWiki.ASPNET2SecurityFAQ0013
http://channel9.msdn.com/wiki/default.aspx/SecurityWiki.ASPNET2SecurityFAQ0068


Thanks

------------------------------------------------------------

This posting is provided "AS IS" with no warranties, and confers no rights.
L.Good
Asp.Net User
Re: In over my head here, using a COM object in VWD20051/19/2006 3:49:08 PM

0/0

I've done some  more checking and found my problem(s). Thanks for the reply, just have to keep reading.
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
In over my head here, using a COM object in VWD2005 - ASP.NET Forums In over my head here, using a COM object in VWD2005. Last post 01-19-2006 10:49 AM by L.Good. 2 replies. Sort Posts: ...
Need to create an export button for bound Gridview in VWD 2005 ... Sub Page_Load(ByVal sender As Object, ByVal e As System. .... This is just my opinion here -- but I have grown to dislike some of those ...
ng.asp-net-forum.visual_web_developer_2005_express/41 - fix error ... In over my head here, using a COM object in VWD2005, 2, 22, 1/19/2006 3:49:08 PM . HTTP port 80, 2, 6, 1/19/2006 4:28:12 AM. where are the .dll's? ...
torsten's .NET blog - Friday, 03 March 2006 NET 2.0 obsolete type/member list the collection is using a new preferred ..... I scratched my head: what the f...? Then I remembered the second quote ...
TheMSsForum.com >> Asp >> Problems using __code reference in ... I abandoned the install - re-instated the template files and am still able to play with my developing an asp.net application using VWD2005 Express. ...
Slide.Show - Discussions Dec 19, 2007 ... P.S. Have tried this in VWD2005 (local), on GoDaddy Windows hosting .... My issue was that I could only see a black window using the quick ...
ASP.NET - Visual Web Developer 2008 | DreamInCode.net New D.I.C Head * Joined: 30 May, 2008 Posts: 30 My Contributions. Hey all, thanks for the assistance! Here's the problem: ...
KillerTestimonials - Killersites.com - KillerPHP.com ... Thanks to your tutorials I've been able to finally wrap my head around the true ... NET 2.0 using VWD 2005. I became interested in PHP after watching your ...
rocky's Blog Page NET app using VWD 2005 and I've created a custom access database and I've .... question but I've been beating my head against a wall for two days now. ...
multiColumn control passing values to listbox and back ... here' my code for listbox to listbox plus function buttons Source view. HTML Code:. ...




Search This Site:










whats wrong in this function to get authorized tabs for dnn

new user register, should admin account get an email?

problem in define error page

v3 create any sub-portal by programming

how can i show a picture in a pop-up ?

how to access secure aspx pages?

ibs store admin page?????

i think i'm going to lose it! register and users not working! :-(

links skin object bug?

"exclude all but" feature?

ttt authentication and routers

asp & asp.net

a better iframe module

security and third party sites

3.1 woes - site settings unavailable, log viewer times out

createuserwizard control

login /create user control

weblog pings

selectcase

missing /mobilemodules/links.ascx

anyway to know domain has ssl

remove users in a role

portal tags

file corrupt error on production server after deployment !

upgrade vs.net pro 2003 special edition to vs.net 2005?

webparts

not for profit needs help and/or advice

any dnn installs in a us army environment

html module with versioning and rollback

custom c# / vb module in dnn 3.0.9 - problems creating such

 
All Times Are GMT