Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1090 - Print Preview of multiple charts
Summary: Print Preview of multiple charts
Status: CONFIRMED
Alias: None
Product: Java TeeChart
Classification: Unclassified
Component: Print (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-19 09:25 EST by yeray alonso
Modified: 2015-01-19 09:25 EST (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2015-01-19 09:25:42 EST
Print Preview of multiple charts doesn't work.

1. If you call add() method to add multiple charts to a printer job, you get an Null-Pointer-Exception.

  tChart1.getPrinter().beginPrint();
  //tChart1.getPrinter().getPrinterJob(); // work-a-round for null-pointer-problem
  tChart1.getPrinter().print(tChart2.getChart().chart, new com.steema.teechart.Rectangle(100,10,300,200));
  tChart1.getPrinter().print(new com.steema.teechart.Rectangle(100,300,300,200));
        tChart1.getPrinter().preview();

2. After making sure the document is created with the workaround for #1 above, the preview only shows the parent chart, tChart1.