Jump to content
Software FX Community

Labels on print output

User (Legacy)

Recommended Posts


I fixed my problems with the annotation objects as labels on the axis. I

managed to

to fix their strange position using the "PrePaint" event. So on the screen


looks fine.

Not so on the printout. The labels appear somewhere close to the top of the


instead of beimg printed right below the x axis.

The code I used in the PrePaint event is something like

Set AnnotX = .GetExtension("AnnotationX.AnnList")

twy = Screen.TwipsPerPixelY

Set txtAnnot = AnnotX.Item(nIndex)

chartFX1.ValueToPixel xMin, yMin, X, Y, AXIS_Y

txtAnnot.Left = X

txtAnnot.Top = chartFX1.Height / twy - 100

I guess the problems arise from the "Screen.TwipsPerPixelY"

Is there anything the like I can do for the printing??

Any help greatly welcome



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.

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.


  • Create New...