ThinkGeo.com    |     Documentation    |     Premium Support

Printing

I am supprised that I can't find any posts on printing in the desktop edition forum.  There are a few references in Web edition forum, but they don't seem to apply.  


I have used used the WinformsMap control DrawToBitmap method to create a bitmap of the map window.  I can then print the bitmap, and I see a couple of advantages in the simplicity of this method, but also a serious resolution issue if I have a really good printer or if I want to print a portion of the map window.


In the previous versions of my software, which don't use map suite, I have drawn directly to the printer rather than to the picture box on the screen.  I have seen something similar in the Map Suite sample code I've looked at so I assume this is an option.  


Is there a recommended method of printing with desktop edition 3?


Charles



Charles, 
  
 Thanks for your post and sharing! 
  
 Obviously, I think there are 2 ways to print the map just as you said: 
 1) Basic way: Get the Bitmap from the Screen and then print the bitmap. 
 I also tried the DrawToBitmap API provided by .net control class and it seems has the shortcomings like low resolution and cannot print portion of the Map control. 
 We are already on the way of thinking provide similar API which can fix those problems in the MapControl. Hopefully, we can have it in future. 
  
 2) Advanced way: Create your own canvas and print it. Currently, we suggest you did it in this way. This will give your much more control and flexibility. 
 As you said, one way is to draw directly to the Printer, very similar, if you create your own canvas, I think we have the extension ability achieving this. 
  
 If you are interested, you take a look at the following extension which might be able to give you some help. Also, we have a HowDOI sample for this. 
 gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/16/aft/5280/afv/topic/Default.aspx 
  
 After create the bitmap in PDF, I think we can print it easily. 
  
 If you have any more questions just let me know. 
  
 Thanks. 
  
 Yale