CAD take Excel spreadsheet

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/u013725001/article/details/91414197

MxDrawResbuf ret = (MxDrawResbuf)axMxDrawX1.Call("ExApp_GetExcel""");

if (ret.AtString(0) == "Ok")

{

    for (int i = 0; i < ret.Count; i++)

    {

        MessageBox.Show(ret.AtString(0));

    }

}

else

{

    MessageBox.Show("图上没有EXCEL有格文件");

}

Guess you like

Origin blog.csdn.net/u013725001/article/details/91414197