简体   繁体   English

如何使用Excel,MapPoint和VBA中的数据打印多页地图?

[英]How to print a multi-page map with data from excel, MapPoint and VBA maybe?

I have an excel file with information on my company's customers including addresses and latitude and longitude. 我有一个excel文件,其中包含有关公司客户的信息,包括地址,纬度和经度。 I need to generate printed street maps showing a reasonable level of detail with pins showing the customers and bubbles displaying their info. 我需要生成打印的街道地图,以显示合理的详细程度,并用针脚显示客户,并用气泡显示其信息。 Essentially I need to create something that looks like a Thomas Guide except with our customer info layered on to the street maps. 从本质上讲,我需要创建类似于《 Thomas Guide》的东西,除了将我们的客户信息分层放置在街道地图上。 I've been looking for DAYS and can't find any software to automate this process. 我一直在寻找DAYS,找不到任何软件来自动化此过程。

Currently I'm importing the data into Microsoft MapPoint, which does a fine job of generating the map with all necessary data. 目前,我正在将数据导入Microsoft MapPoint,这可以很好地生成包含所有必要数据的地图。 However MapPoint can only print what's currently displayed on the screen. 但是,MapPoint只能打印屏幕上当前显示的内容。 So I'm stuck printing at a close zoom level, scrolling over, printing again, and continuing this process ad nauseum. 因此,我停留在接近缩放级别的打印,滚动,再次打印以及继续此过程。

Is there maybe a way to automate this with VBA in MapPoint? 是否有办法在MapPoint中使用VBA自动执行此操作? I can find almost no info online about VBA for MapPoint. 我几乎在网上找不到有关VBA for MapPoint的信息。

Or maybe there's a piece of software out there that can do this at the push of a button. 或者也许有一个软件可以按一下按钮来完成。 Printing a multi-page map of an area doesn't seem like that crazy of a demand. 打印一个区域的多页地图似乎并不疯狂。

Any help would be appreciated. 任何帮助,将不胜感激。

MapPoint's API is actually pretty well documented in the MapPoint help file, and most of the examples use VB6, which should be adaptable for VBA - you will need to add a reference to MapPoint's object model. MapPoint的API实际上在MapPoint帮助文件中有很好的文档说明,并且大多数示例都使用VB6,该版本应适用于VBA-您将需要添加对MapPoint对象模型的引用。

Yes you can automate the printing. 是的,您可以自动执行打印。 Other approaches include copying to the clipboard; 其他方法包括复制到剪贴板。 save to web page (and extract the Map's GIF image); 保存到网页(并提取地图的GIF图像); or to use the GetPictureFromObject(). 或使用GetPictureFromObject()。 I recently wrote an article about using the latter from C# (it would be simpler from VB6 or VBA) 我最近写了一篇关于使用C#中的后者的文章(从VB6或VBA中会更简单)

You could also print to a very large PDF, see the tips from this newsletter -- http://www.mp2kmag.com/update/mappoint.newsletter/2013-02-18/ 您也可以打印到非常大的PDF,请参阅此新闻快讯的提示-http: //www.mp2kmag.com/update/mappoint.newsletter/2013-02-18/
Here's a direct link to the article -- 这是文章的直接链接-
http://www.mapforums.com/print-large-multiple-sheet-maps-any-printer-27603.html http://www.mapforums.com/print-large-multiple-sheet-maps-any-printer-27603.html
Eric 埃里克

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM