Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-11-2010, 12:26 AM
Naresh_1210 Naresh_1210 is offline Problem with my microsoft word com object in c# web application Windows 7 Problem with my microsoft word com object in c# web application Office 2007
Novice
Problem with my microsoft word com object in c# web application
 
Join Date: Mar 2010
Posts: 2
Naresh_1210 is on a distinguished road
Question Problem with my microsoft word com object in c# web application

1) i have made a reference to microsoft.Office.Interop.Word
2) included a namespace has "include Word=microsoft.Office.Interop.Word" and given Word as alias to the above namespace
3) Word.Application WordApp = new Word.Application();
Word.Document WordDoc = null;


created an instance for Application and Document class
4) object missing =System.Reflection.Missing.Value
5)WordDoc = WordApp.Documents.Open(ref filename, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing);

here i given valid path for the file to be opened. but still my WordDoc gives me null vaule. (i have cross checked my filepath twice)

kindly help me where i'm going wrong.
thanks in advance.


Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Microsoft Excel Application" missing in the "Component Services" on win08 sword.fish Excel 0 02-26-2010 02:09 PM
Microsoft Excel has encountered a problem suehoege Excel 1 01-06-2010 12:27 PM
Could not load this object as this object is not present in your computer k.gaurav Office 0 08-17-2009 09:57 PM
Microsoft Clip Organizer Problem lkh128 Word 0 06-03-2009 08:56 AM
Problem with my microsoft word com object in c# web application Microsoft Outlook 2000 Problem Wiily Outlook 1 04-14-2006 02:06 AM

Other Forums: Access Forums - Senior Forums

All times are GMT -7. The time now is 08:47 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft