none
C#でexcelが認識されない RRS feed

  • 質問

  • C#にて開発を行っているのですがExcelをインストールしているにもかかわらず下記のコードでnullが返ってきます


        System.Type type = null;
        try
        {
            type = System.Type.GetTypeFromProgID("Excel.Application");
            if (type == null)
            {
                MessageBox.Show("Excelがインストールされていません。", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }
        finally
        {
            type = null;
        }

    お手数をお掛けしますが、宜しくお願いいたします。
    2020年8月3日 2:09

すべての返信