Printing from previewer after moving DragMarks

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
warrenk
Newbie
Newbie
Posts: 4
Joined: Thu May 26, 2005 4:00 am

Printing from previewer after moving DragMarks

Post by warrenk » Tue Nov 14, 2006 2:46 pm

I'm trying to print scatterplots that have marks that can be moved by the user. I'm using the method posted in this forum of saving the customized marks coordinates and restoring them to ensure that the marks are in the correct places when the graph is resized, copied to clipboard etc. I can also print directly by creating a metafile of the chart and sending it to the printer with StretchDraw. This all works OK.

However, I've like to print from the TChartPreviewer. That uses its own print routine that results in the customized marks being shifted to the upper left. The preview shows the customized marks in the correct place, but they are out of place on the actual printout. I've tried adjusting the marks position in the OnBeforePrint event but that doesn't help.

Can you tell me:

a) how can I get customized marks to print in the correct position when printing from the print previewer, and

b) will the new ver. 8 of TeeChart define the positions of customized marks in axis coordinates rather than screen coordinates, thus saving all this messing about when using drag marks?

Thanks,

Warren

warrenk
Newbie
Newbie
Posts: 4
Joined: Thu May 26, 2005 4:00 am

Re: Printing from previewer after moving DragMarks

Post by warrenk » Fri Nov 17, 2006 7:08 am

Hello, any response to this? Even if there isn't a solution to the first question, could you respond to the second one?

Warren

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri Dec 01, 2006 12:45 pm

Hi Warren,

a) To get the Marks printed at the correct place printing through the ChartPreviewer you will have to set the positions of each Mark that has been moved manually getting the ChartBounds and Maks.Posiitions.Bounds, and then back the correct Chart positions when the Chart has been printed.

b) Yes, we're improving it for the next release v8, the Marks will be printed at the same position as in the Previewer.

Post Reply