Jump to content
Software FX Community

Re: Labels on print output

Software FX

Recommended Posts

The position of the annotation objects must be supplied in SCREEN 

coordinates. They will be converted to printer coordinates internally. Since

you are positioning the annotation object inside the PrePaint event, you

must transform all your calculations to SCREEN coordinates (as the size of

the chart etc. are given to you in printer coordinates).

The following code moves an annotation object to the bottom of the chart in

the PrePaint event:

Dim y As Integer

If ChartFX1.PaintInfo(CPI_PRINTINFO) Then ' Need to re-scale

h = Int(h * (Printer.TwipsPerPixelY / Screen.TwipsPerPixelY))

End If

GlobalRect.Top = h - GlobalRect.Height

GlobalRect is the annotation object.



Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...