010-68421378
sales@cogitosoft.com
Categories
AddFlow  AmCharts JavaScript Stock Chart AmCharts 4: Charts Aspose.Total for Java Altova SchemaAgent Altova DatabaseSpy Altova MobileTogether Altova UModel  Altova MapForce Altova MapForce Server Altova Authentic Aspose.Total for .NET Altova RaptorXML Server ComponentOne Ultimate Chart FX for SharePoint Chart FX CodeCharge Studio ComponentOne Enterprise combit Report Server Combit List & Label 22 Controls for Visual C++ MFC Chart Pro for Visual C ++ MFC DbVisualizer version 12.1 DemoCharge DXperience Subscription .NET DevExpress Universal Subscription Essential Studio for ASP.NET MVC FusionCharts Suite XT FusionCharts for Flex  FusionExport V2.0 GrapeCity TX Text Control .NET for WPF GrapeCity Spread Studio Highcharts Gantt Highcharts 10.0 版 HelpNDoc Infragistics Ultimate  ImageKit9 ActiveX ImageKit.NET JetBrains--Fleet JetBrains-DataSpell JetBrains--DataGrip jQuery EasyUI jChart FX Plus OPC DA .NET Server Toolkit  OSS ASN.1/C Oxygen XML Author  OSS 4G NAS/C, C++ Encoder Decoder Library OSS ASN.1 Tools for C with 4G S1/X2 OSS ASN.1/C# OSS ASN.1/JAVA OSS ASN.1/C++ OPC HDA .NET Server Toolkit OPC DA .Net Client Development Component PowerBuilder redgate NET Developer Bundle Report Control for Visual C++ MFC  Sencha Test SPC Control Chart Tools for .Net Stimulsoft Reports.PHP Stimulsoft Reports.JS Stimulsoft Reports.Java Stimulsoft Reports. Ultimate Stimulsoft Reports.Wpf Stimulsoft Reports.Silverlight SlickEdit Source Insight Software Verify .Net Coverage Validator Toolkit Pro for VisualC++MFC TeeChart .NET Telerik DevCraft Complete Altova XMLSpy Zend Server

Chart FX Printing

Chart FX Printing

The Printer object provides important and very helpful properties to print a chart. Using this object, you will have control over the margins, paper orientation, color or pattern printing, among others. The supported methods will also allow you to prompt the user with page setup, preview and print dialogs to ensure the user prints exactly what they want.

 

Setting the Page Layout

When you are ready to add printing functionality to your chart, there are questions you should take into account:

 

Would you like to use the default printer margins or specify custom margins?

 

Should the printed chart use a landscape or portrait page orientation?

 

Should you prompt the user with a preview or setup dialog to make these choices themselves?

 

Chart FX 7 supports properties and methods that will allow you to specify exactly the page layout desired.

Margins

If no margins are set for a chart, the default printer margins will be used when the chart is printed. Chart FX allows you to specify the top, bottom, right and left margins using the Margins property. The margins property is set using an integer and is measured in hundredths of an inch; therefore, if you would like to set an inch margin around the chart, each margin must be set to 100, using the following API calls:

 

 

If you would rather allow the user to configure the printing margins, you may do so by calling the PageSetup method. The PageSetup method will prompt the user with a page setup dialog box that allows end user access to the page margins and page orientation (Landscape/Portrait). The print preview dialog may also be prompted to the user by calling the PrintPreview method, with the following API:

 

Orientation

From the page setup dialog, the end user my select to print the chart in either the landscape or portrait formats. The landscape format is longer from left to right, while the portrait format is longer from top to bottom.

 

You can also set the page orientation programmatically using the Orientation property, using the API calls below:

 

Printing Colors

Normally if you have a black and white printer and try printing a color chart, you will receive a printout that is virtually unreadable due to the grayscales that are printed instead of the true palette colors. To resolve this type of issue, Chart FX includes the ForceColors property. When a color chart is printed to a B&W printer while this property is set to "False", each color in the chart is printed as a hatched pattern. This helps the end user read different series in the chart based on the contrasting patterns created in the printout. If the chart is to be printed with a color printer, you can force Chart FX to print a color chart by setting this property to "True". The API below should be used to set the ForceColors property and print the chart:

Note: The ForceColors property will have no effect when the Chart is printed with a B/W printer.

Quick Navigation;

© Copyright 2000-2023  COGITO SOFTWARE CO.,LTD. All rights reserved