https://github.com/thinkgeo/printpreviewsample-forwpf.netcore
In this sample we show you how to add robust printing support to your Map Suite applications for the desktop, WPF, web or services environments. Using the code in this sample, 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 bitmap image. Maps are printed using vector graphics so you can be sure the output will look great on anything. The printing system also includes low-level report building classes that make it easy to generate reports in the web or services environment.
https://github.com/thinkgeo/printpreviewsample-forwpf.netcore
dotnet dotnet-core gis mapping printer spatial thinkgeo v12 wpf
Last synced: 29 days ago
JSON representation
In this sample we show you how to add robust printing support to your Map Suite applications for the desktop, WPF, web or services environments. Using the code in this sample, 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 bitmap image. Maps are printed using vector graphics so you can be sure the output will look great on anything. The printing system also includes low-level report building classes that make it easy to generate reports in the web or services environment.
- Host: GitHub
- URL: https://github.com/thinkgeo/printpreviewsample-forwpf.netcore
- Owner: ThinkGeo
- Created: 2019-09-24T10:25:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-08T23:33:48.000Z (over 5 years ago)
- Last Synced: 2026-01-02T00:57:03.632Z (5 months ago)
- Topics: dotnet, dotnet-core, gis, mapping, printer, spatial, thinkgeo, v12, wpf
- Language: C#
- Homepage:
- Size: 3.38 MB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Print Preview Sample for Wpf
### Description
In this sample we show you how to add robust printing support to your Map Suite applications for the WPF. Using the code in this sample, 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 bitmap image. Maps are printed using vector graphics so you can be sure the output will look great on anything.
Please refer to [Wiki](http://wiki.thinkgeo.com/wiki/thinkgeo_desktop_for_wpf) for the details.

### About the Code
```csharp
Map1.ZoomLevelSet = new PrinterZoomLevelSet(Map1.MapUnit, PrinterHelper.GetPointsPerGeographyUnit(Map1.MapUnit));
PrinterInteractiveOverlay printerOverlay = new PrinterInteractiveOverlay();
Map1.InteractiveOverlays.Add("PrintPreviewOverlay", printerOverlay);
Map1.InteractiveOverlays.MoveToBottom("PrintPreviewOverlay");
PagePrinterLayer pagePrinterLayer = new PagePrinterLayer(PrinterPageSize.AnsiA, PrinterOrientation.Portrait);
pagePrinterLayer.Open();
printerOverlay.PrinterLayers.Add("PageLayer", pagePrinterLayer);
```
### Getting Help
[Map Suite Desktop for Wpf Wiki Resources](http://wiki.thinkgeo.com/wiki/thinkgeo_desktop_for_wpf)
[Map Suite Desktop for Wpf Product Description](https://thinkgeo.com/ui-controls#desktop-platforms)
[ThinkGeo Community Site](http://community.thinkgeo.com/)
[ThinkGeo Web Site](http://www.thinkgeo.com)
### About ThinkGeo
ThinkGeo is a GIS (Geographic Information Systems) company founded in 2004 and located in Frisco, TX. Our clients are in more than 40 industries including agriculture, energy, transportation, government, engineering, software development, and defense.