Arcgis [Add-in] 인쇄용 template 자동으로 적용하기 퐁퐁 2013. 2. 15. 16:47 public override void OnClick() { IGxFile gxFile = new GxMapClass(); gxFile.Path = System.IO.Path.Combine(AppInfo.StartupPath, "Layout", "AgriculturalMap.mxd"); IGxMapPageLayout gxPageLayout = (IGxMapPageLayout)gxFile; IPageLayout pageLayout = gxPageLayout.PageLayout; IMxDocument mxDocument = (IMxDocument)m_application.Document; pageLayout.ReplaceMaps(mxDocument.Maps); mxDocument.PageLayout = pageLayout; } 저작자표시