Register  |  Login
ThinkGeo - GPS Tracking and Mapping Solutions  |  Visit the Wiki  |  Find us on: Twitter Facebook Google+ LinkedIn

Discussion Forums

The online community for users of Map Suite GIS components

RSS Feed Available AddThis - Bookmarking and Sharing Button Printer Friendly

PrevPrev NextNext

Robust Printing System Now Available in Map Suite

Posted by ThinkGeo on 08-23-2011 01:59 PM

We're pleased to announce that the new robust printing system for Map Suite has finally arrived! Beginning with Map Suite version 5.0.102.0 just released today, you can start adding interactive previewing, page layout and printing capabilities to your Map Suite applications. Check out today's new code sample and video to see how it's done.
Print Preview Code Sample

Greetings all,

We're pleased to announce that the new robust printing system for Map Suite has finally arrived! Beginning with Map Suite version 5.0.102.0 just released today, you can start adding interactive previewing, page layout and printing capabilities to your Map Suite applications. We've also released a new code sample to show you how to put it all together.

To get access to the new printing functionality in Map Suite, you'll need to download the latest daily build for your chosen product(s). You can get the latest daily build from your Customer Portal account -- they're available for any Map Suite products that you've purchased, as well as our full array of evaluations.

How Printing Works

The accompanying code sample will introduce you to the new printing system. Within, we'll show you how to add robust printing support to your Map Suite applications for the desktop, WPF, web or services environments. You'll be able to build a Print Preview interface that lets your users interactively arrange items (such as a map, scale line, labels, data grid or image) on a virtual page before printing the result to a printer, exporting to a PDF or to a bitmap image. Maps are printed using vector graphics so you can be sure the output will look great on anything from a PDF to a large plotter. The printing system also includes low-level report building classes that make it easy to generate reports in the web or services environment.

The C# code sample, designed for Visual Studio 2010, is available in both WPF and Windows Forms and can be downloaded here:

http://wiki.thinkgeo.com/wiki/Map_S...ng_Samples

Special Note for Users of Map Suite Web, Silverlight and Services Editions

The Print Preview interface pictured above, which allows users to interactively arrange drag-and-drop page layouts, hinges on the new PrinterInteractiveOverlay class that is exclusive to Map Suite Desktop and WPF Desktop Editions. This means that Web, Silverlight and Services Editions do not currently include this functionality. However, the ability to programmatically prepare page layouts and send them to a printer is included in the core classes that are shared across all products.

Users of Map Suite Web, Silverlight or Services Editions will therefore be able to design (in code) their own custom PageLayers using whatever layout they choose and then export those layouts to a printer. The only functionality missing from these editions of Map Suite is the drag-and-drop page layout user interface pictured above.

For more details on this, please take a look at the instructional video we've posted below.

Watch the Video

We've prepared the following instructional video to help explain the new printing support. Presented by Map Suite Chief Architect David Rehagen, it will walk you through the Print Preview code sample, show you what it can accomplish and how easy it is to implement.

Watch the walkthrough video for Map Suite's Print Preview code sample

As a reminder, you'll need to download the latest daily development build for your Map Suite .NET control before you can use printing support. If you need help with daily builds, please review our wiki article on the subject.

Thanks for choosing Map Suite,
The ThinkGeo Team

Need to know how to do something with Map Suite? Check our Wiki Code Samples Library and view the source code of any sample right in your web browser.

14 Comments

GregoryUser is Offline
08-30-2011 12:24 PM
Avatar
Bravo Bravo!!!

This is exactly what i was looking to build and you have gone and done it for me :) :) :)

*Very happy*
GaryUser is Offline
08-31-2011 10:16 AM
Avatar
Gregory,

Thank you for using our products, I hope you can enjoying it.

If you have any questions, please feel free to let us know.

Regards,

Gary
GregoryUser is Offline
09-14-2011 02:07 PM
Avatar
Darn, web edition isnt supported. When i watched the video i got the impression the web edition was part of this.
GaryUser is Offline
09-14-2011 02:18 PM
Avatar
Gregory,

I'm sorry, because there is a very important internal class named AdornmentInteractiveOverlay for PritnerOverlay, it only supported by DesktopEdition and WpfEdition right now, so we can't run PrinterOverlay in WebEdition, but there is a chance we will add it into webedtion at next release.

Regards,

Gary
GregoryUser is Offline
11-16-2011 11:31 PM
Avatar
Hi Gary,

Is this included in version 5.5 ?
GaryUser is Offline
11-17-2011 01:16 PM
Avatar
Gregory,

Sorry, this sample still working in the DesktopEdition and WpfEdition, but you can still use PagePrinterLayer and MapPrinterLayer to do the same thing in Web and Silverlight, if you meet any problems with that, please let us know.

Regards,

Gary
ChrisUser is Offline
11-18-2011 06:45 AM
Avatar

Gary,

Like Gregory, we are extremely interested in the functionality displayed in the video. Can you provide an example of how to use the PagePrinterLayer and the MapPrinterLayer to achieve something similar to the video?

Thanks,
Chris

DavidUser is Offline
11-20-2011 07:57 PM
Avatar
Chris,

The printing system is split into two parts. The first part is in the MapSuiteCore assembly and this defines the printing page, all of the elements such as the legend, scalebar, map etc. These can be used by the Web Edition very easily just like in the desktop sample. The second part is the PrinterInteractiveOverlay and that is what allows the user to drag around all of the items on the map and interact with it. This needs to be designed per product and so far we have the WPF and Winforms covered, through the Silverlight should be very easy. The Web Edition is much harder as all of that work has to be done client side.

One thing I want to stress is that the beauty of the core PrinterLayers is that they are in page layout coordinates. You can create a page and drop in your map using inches or mm and easily do your layout. If you do not allow the users to fiddle with position and need printing then this works in the Web Edition right now. When the user hits print you can create the page and all the elements on the server side and generate a PDF, image, or whatever and then service it back to the customer. It would also be possible to create an HtmlGeoCanvas and output the report to HTML. While we are looking into the printing side of things for the Web Edition it is in the early stages and could take some time.

What we can do is create a web sample that shows some cool stuff you can do with printing right now.

Thanks,

David

GregoryUser is Offline
11-29-2011 03:04 AM
Avatar
That would be great!
Can the sample reference Different Layers/Overlays
Like the (Custom, Static, Dynamic, and Google Maps)
GaryUser is Offline
11-29-2011 08:33 AM
Avatar
Hello Gregory,

Thanks for your advise, we will consider this and do as much as we can to help you coding easier.

Regards,

Gary
GregoryUser is Offline
05-03-2012 01:49 AM
Avatar
Any progress on this Gary ?
GaryUser is Offline
05-03-2012 03:01 PM
Avatar
Hello Gregory,

Sorry for waiting, we are preparing the 6.0 release recently, we will plan to work on this after the release, and as soon as we finished it, we will upload to the wiki code community.

Sorry for the inconvenience and thanks for understanding.

Regards,

Gary
GregoryUser is Offline
05-12-2012 04:41 AM
Avatar
No, thank you for creating such incredible components, i hope you guys realize what you enabled developers to do all around the world. You deserve way more credit!!!
JamesUser is Offline
05-15-2012 09:19 AM
Avatar
Gregory,

Just let you know we are still in progress to creating the sample.

Thanks,
James
You are not authorized to post a reply.
Active Forums 4.2