J
Jason T
i have a label on a report who's caption reads "Total: "
(caption does not change).
the font size of the label can be dynamically changed by a
form where different criteria are selected to edit the
report before it is printed.
as font size increases the width of the label needs to
increase accordingly.
i considered using the windows api
function 'GetTextExtentPoint' along w/ the 'GetDC'
function. i think if i could pass the label through
the 'GetDC' function and then through
the 'GetTextExtentPoint' it would work, but i dont know
how do this. if it were a form i could use the 'GotFocus'
api function, but with it being a report i'm outta luck.
does anyone have information that can help me with the
route i'm taking, or have another way that you know will
work??? thank you! Jason
(caption does not change).
the font size of the label can be dynamically changed by a
form where different criteria are selected to edit the
report before it is printed.
as font size increases the width of the label needs to
increase accordingly.
i considered using the windows api
function 'GetTextExtentPoint' along w/ the 'GetDC'
function. i think if i could pass the label through
the 'GetDC' function and then through
the 'GetTextExtentPoint' it would work, but i dont know
how do this. if it were a form i could use the 'GotFocus'
api function, but with it being a report i'm outta luck.
does anyone have information that can help me with the
route i'm taking, or have another way that you know will
work??? thank you! Jason