Java+ArcEngine 使用IPageLayoutControlDefault接口loadMxFile参数问题
int[] p=new int[]{esriLicenseExtensionCode.esriLicenseExtensionCodeSpatialAnalyst}; InitLicenses.CheckLicense(p);
IPageLayoutControlDefault pageLayoutControl=new PageLayoutControl();
String maxd="E:\\test\\m_Departure.mxd";
pageLayoutControl.loadMxFile(maxd,null); InitLicenses.shutdownLicense();
这段代码在mxd文件存在的情况下,loadMxFile方法报java.lang.IllegalArgumentException: Argument is not a COM object: null
请问是什么原因,请不吝赐教!
1 个回复
朱新颖
赞同来自:
要回复问题请先登录或注册