# MapWinGIS in a MS Access Report

**URL:** <https://mapwindow.discourse.group/t/mapwingis-in-a-ms-access-report/868>\
**Category:** MapWinGIS\
**Created:** [January 15, 2021, 4:13pm UTC](https://mapwindow.discourse.group/t/mapwingis-in-a-ms-access-report/868 "2021-01-15T16:13:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stu](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@stu](https://mapwindow.discourse.group/u/stu)\
**Post date:** [January 15, 2021, 4:13pm UTC](https://mapwindow.discourse.group/t/mapwingis-in-a-ms-access-report/868/1 "2021-01-15T16:13:53Z")

</div>

Hi

I am trying to put a map in a MS Access report. The map never gets generated during printing, or print preview. I have tried the usual events, no luck.

Thanks  
Stu

---

<div class="post-metadata">

**Author:** ![jerryfaust](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/jerryfaust/32/378_2.png) [@jerryfaust](https://mapwindow.discourse.group/u/jerryfaust)\
**Post date:** [January 16, 2021, 6:29am UTC](https://mapwindow.discourse.group/t/mapwingis-in-a-ms-access-report/868/2 "2021-01-16T06:29:10Z")

</div>

Hello Stu.

One option, if acceptable, is to get an image of the current map using one of the [Snapshot](https://www.mapwindow.org/documentation/mapwingis4.9/class_ax_map.html#a69d4d4aa61771a2222eb2854eba5dc73) methods (returning a MapWinGIS Image object), and either embed it directly into the report (if that’s possible) or save to disk, and include that in the report.

As an aside, I did have a project once in which I was setting the map control into a Window of another application, and I did it using the Windows API SetParent call. Not sure if that is an option for you, or if it would work in that environment…

Regards,  
Jerry.

---

<div class="post-metadata">

**Author:** ![stu](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@stu](https://mapwindow.discourse.group/u/stu)\
**Post date:** [January 16, 2021, 10:38pm UTC](https://mapwindow.discourse.group/t/mapwingis-in-a-ms-access-report/868/3 "2021-01-16T22:38:55Z")

</div>

Thanks Jerry

I will try both methods.

Stu

---

<div class="post-metadata">

**Author:** ![stu](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@stu](https://mapwindow.discourse.group/u/stu)\
**Post date:** [January 16, 2021, 10:51pm UTC](https://mapwindow.discourse.group/t/mapwingis-in-a-ms-access-report/868/4 "2021-01-16T22:51:44Z")

</div>

On the Snapshot method.

MS Access lets you link to an image. snapshot generates the image to a file, the image file is liked in the report

stu

---

<div class="post-metadata">

**Author:** ![pmeems](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/pmeems/32/9_2.png) [@pmeems](https://mapwindow.discourse.group/u/pmeems)\
**Post date:** [January 5, 2022, 1:46pm UTC](https://mapwindow.discourse.group/t/mapwingis-in-a-ms-access-report/868/5 "2022-01-05T13:46:27Z")

</div>


