Hi Steve,
Thanks for the demo!
It’s because the MagneticDeclinationPrinterLayer only supported Decimal Degrees. We’ve made some changes, can you:
-
Upgrade to the latest beta 14.4.0-beta024
-
After setting the MapExtent, also set the Projection for the PrinterLayer.
PageLayout.PageLayoutMap.MapExtent = MapUtil.GetDrawingExtent(moLineShapefile.GetBoundingBox, CSng(PageLayout.PageLayoutMap.GetBoundingBox().Width), CSng(PageLayout.PageLayoutMap.GetBoundingBox().Height))
PageLayout.PageLayoutMap.Projection = New Projection(EnumCoordSys.NAD83_UTM_zone_16N)
It should be working fine
Thanks,
Ben