.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Imran Ghani
Sohaib Khalid

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

Help me to rectify the error(could not open macro storage)

Posted By: Santosh     Posted Date: October 03, 2013    Points:5   Category :C#
Hello All,

i am trying to open the content of a word file in run time using c# code but i am getting below error.

"could not open macro storage".

any one please help me to rectify this error or is it possible to provide me the code to skip the document while getting this error.

refer this below code.

using Microsoft.Office.Interop.Word;
Microsoft.Office.Interop.Word.Document docs;
Microsoft.Office.Interop.Word.Application word = new Microsoft.Office.Interop.Word.ApplicationClass();
docs = word.Documents.Open("F:\\Projects\\Resumes\\" + "santosh.doc");

Note: need to be refer(Microsoft.Office.Interop.Word)



No response found. Be the first to respond this post
Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend