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


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

  • Create New...