beautypg.com

Pitney Bowes MapXtreme User Manual

Page 527

background image

Appendix E: Printing From MapXtreme Applications

General Printing Tips and Tricks

MapXtreme v7.1

534

Developer Guide

MapInfo.Mapping.IMapLayerFilter filter =
MapInfo.Mapping.MapLayerFilterFactory.FilterByLayerType(normalLyr);
MapInfo.Mapping.Legends.LegendFrame frame;

foreach(MapInfo.Mapping.FeatureLayer ftrLayer in
mapControl2.Map.Layers.GetMapLayerEnumerator(filter))
{

frame =

MapInfo.Mapping.Legends.LegendFrameFactory.CreateCartographicLegendFrame(
ftrLayer);

legend.Frames.Append(frame);

}

//set legend location on the map
System.Drawing.Point pt = new System.Drawing.Point(220, 200);
pt.X = mapControl2.Size.Width - legend.Size.Width;
pt.Y = mapControl2.Size.Height - legend.Size.Height;
legend.Location = pt;

//append legend as map adornment
mapControl1.Map.Adornments.Append(legend);

mapPrinting.print ();
Old Driver Works, New Driver Doesn’t

When in doubt, if an older driver worked and the new one does not, go back to the older
driver.

HP 755 Driver Suggestion
If you are having difficulties printing using this plotter model, try the plotter driver for the HP 650C
(C2859B) instead. In many cases, if you are having difficulty with a printer or plotter model and a
similar model exists, you can substitute the similar model's driver for the current one and get good
results. For example, you can use the printer driver for the HP 8500 DN Color LaserJet with the
HP8550 color LaserJet driver.

Recommendations for Effective Pattern Scaling
When you are printing, find out what type of printer driver you are using. Many PCL6 and some
HPGL drivers handle fill pattern scaling and give you control over this feature. Turning off their
scaling may be the difference between what you see in print and what you see on your monitor. We
recommend that you try turning off your driver’s scaling options and try ours first, because we have
enhanced our method to better meet your Map and Legend printing requirements. To turn our
pattern scaling options on, enable Scale Patterns in your application (see

Scale Patterns

. Try

disabling our scaling to see which you like better. Tests show that our scaling produces color output
that more closely matches a screen’s display.

If you are printing to PostScript drivers using LanguageLevel 2 or 3, we find that some of the
Microsoft drivers do not support pattern scaling. As a result, our scaling method may not help you.
Microsoft recommended that you reset the language level of the PostScript driver to LanguageLevel
1 to remove this restriction. We did find some exceptions to this condition. On Windows 2000 and
Windows NT, some HP Laser Jet and Color Laser Jet PostScript drivers, using our scaling option,
printed correctly.