Page 1 of 1

Printing from previewer after moving DragMarks

Posted: Tue Nov 14, 2006 2:46 pm
by 9341987
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

Re: Printing from previewer after moving DragMarks

Posted: Fri Nov 17, 2006 7:08 am
by 9341987
Hello, any response to this? Even if there isn't a solution to the first question, could you respond to the second one?

Warren

Posted: Fri Dec 01, 2006 12:45 pm
by Pep
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.