ThinkGeo.com    |     Documentation    |     Premium Support

Paper printing respecting paper scale

Hi,


I need to print on paper a map with the following constraint:


1. the map need to be printed within a know rectangle (printable area minus margins; footer, ...) on the paper

2. the center of the map on screen needs to be at the center of the rectangle on the paper

3. the map on the paper needs to repect a know scale (eg 1/1000th)


Of course, the geometry of the paper does not match the one of the screen, so some part to print are not in the visible part of the screen.


I was doing something very complex with MS2 and I hope that MS3 comes with some easier method (I heard about drawcanvas but it's not clear); on the other hand, this seems to be a very common needs and a sample would help.


Any help is welcome.


Patrick.



Patrick, 


Thanks for your post!
 
Of course, it will not be so easy to solve the complicated printing problem up to now, following are some posts related with Printing which contains some demo, hopefully, this can give you some helps and ideas.
 
 gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/5911/afv/topic/afpgj/1/Default.aspx#9298
 gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/5912/afv/topic/afpgj/1/Default.aspx#9299
 gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/5878/afv/topic/afpgj/1/Default.aspx#9144
 
I am not very clear with your item#3, could you make it more specific and detailed?
 
Any more questions or suggestions are welcome, hope we can move forward together for this problem.
 
Thanks.
 
Yale

Item #3: 
  
 print 1/1000th => 1 cm of paper = 10 m. of ground. 
  
 Patrick.

Patrick, 
  
 Thanks for your post! 
  
 I think for this requirement, it will depend on the Scale of the WinformsMap! 
  
 So what we need to do is to calculate out the target scale and then set this scale for this winformsMap, then use the logic above to print the current view of the winformsMap. 
  
 How do you think so? 
  
 Thanks. 
  
 Yale