SAS Office Analytics, SAS Add-In for Microsoft Office, and other integrations

Error while opening a word file from SAS foder

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 89
Accepted Solution

Error while opening a word file from SAS foder

Hi,

I tried to open a word document from "Open from SAS Folders" menu option in MS Word and I got following error message:

********************************************************************************************************************************************

Word experienced an error trying to open the file.

Try these suggestions.

* Check the file permissions for the document or drive.

* Make sure there is sufficient free memory and disk space.

* Open the file with the Text Recovery converter.

(C:\...\UW Compliance-Group Term Repor...)

-------------------------- Technical Information Follows --------------------------

Exception Details:

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

Exception type:  System.Runtime.InteropServices.COMException

Message:         Word experienced an error trying to open the file.

Try these suggestions.

* Check the file permissions for the document or drive.

* Make sure there is sufficient free memory and disk space.

* Open the file with the Text Recovery converter.

(C:\...\UW Compliance-Group Term Repor...)

Source:          Microsoft Word

Target Site:     Open

Help Link:       C:\Program Files (x86)\Microsoft Office\Office12\1033\WDMAIN11.CHM#24601

Stack Trace:

   at Microsoft.Office.Interop.Word.Documents.Open(Object& FileName, Object& ConfirmConversions, Object& ReadOnly, Object& AddToRecentFiles, Object& PasswordDocument, Object& PasswordTemplate, Object& Revert, Object& WritePasswordDocument, Object& WritePasswordTemplate, Object& Format, Object& Encoding, Object& Visible, Object& OpenAndRepair, Object& DocumentDirection, Object& NoEncodingDialog, Object& XMLTransform)

   at SAS.OfficeAddin.WordAddin.OpenDocument(_Application application, String docName)

   at SAS.OfficeAddin.WordAddin.OpenFileAsUntitled(String file)

   at SAS.OfficeAddin.OfficeAddinBase.PostProcessJob(JobContext jobContext, Boolean promptOnErrors)

********************************************************************************************************************************************

Any help on this will be much appreciated.

Thanks!!


Accepted Solutions
Solution
‎10-16-2014 01:39 PM
Frequent Contributor
Posts: 89

Re: Error while opening a word file from SAS foder

I saved files in Office 2003 format and it worked fine. Now I'm able to open them!!

View solution in original post


All Replies
Respected Advisor
Posts: 3,063

Re: Error while opening a word file from SAS foder

What you are doing doesn't make any sense. The "Open from SAS Folder" is for SAS-type files only like SAS reports, stored processes, EG projects etc. These read SAS objects into Word.

If you want to read a Word doc into Word just use File Open. You don't need SAS for that.

Frequent Contributor
Posts: 89

Re: Error while opening a word file from SAS foder

  To open a SAS reports we have "Report" menu button on SAS Add in menu bar. Through this we can open/run any SAS report/Stored processes.

But I'm talking about "Open from SAS Folder" which is there under File menu of word/excel file document. It only allows to open a MS office document and not a SAS report.

Solution
‎10-16-2014 01:39 PM
Frequent Contributor
Posts: 89

Re: Error while opening a word file from SAS foder

I saved files in Office 2003 format and it worked fine. Now I'm able to open them!!

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 944 views
  • 0 likes
  • 2 in conversation