私はmswordを開くc#コードを実行しましたが、正しく実行されます。このプログラムをコンドル環境で実行したいのですが、エラーが発生しました。
Unhandled Exception: System.Runtime.InteropServices.COMException (0x80080005): Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80080005.
at Console_try.Program.open_document(String pwd, String file_name)
at Console_try.Program.Generate_small(String pwd, Int32 pos, Int32 siz, String file_name)
at Console_try.Program.Generate_small(String pwd, Int32 pos, Int32 siz, String file_name)
at Console_try.Program.Generate_small(String pwd, Int32 pos, Int32 siz, String file_name)
at Console_try.Program.Main(String[] args).
このエラーはMSVisualStudio C#に属すると思います。