Jump to content
Software FX Community

Re: Labels on print output


Software FX
 Share

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.

Frank

SFX

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...