Visual Basic - urge ayuda:NECESITO SABER LA LONGITUD EN TWIPS DE

Life is soft - evento anual de software empresarial
 
Vista:

urge ayuda:NECESITO SABER LA LONGITUD EN TWIPS DE

Publicado por sILVIA (3 intervenciones) el 19/02/2004 12:00:20
NECESITO SABER LA LONGITUD EN TWIPS DE UNA CADENA DE TEXTO CUYA FUENTE ES TIMES NEW ROMAN ,10, NEGRITA. ¿COMO PUEDO HACER LA CONVERSION ENTRE LA LONGITUD DEL TEXTO Y SU TAMAÑO EN TWIPS?

MUCHAS GRACIAS
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:urge ayuda:NECESITO SABER LA LONGITUD EN TWIPS

Publicado por Cecilia Colalongo (3116 intervenciones) el 19/02/2004 15:06:04
Si lo tienes en un Label con la propiedad AutoSize en True, entonces con el Width y el Height del Label lo multiplicas por las propiedades Screen.TwipsPerPixelX y Screen.TwipsPerPixelY
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:urge ayuda:NECESITO SABER LA LONGITUD EN TWIPS

Publicado por Silvia (3 intervenciones) el 20/02/2004 09:26:51
El problema está en que el texto no está en un label sino en un rptlabel de un dataReport. necesito saber cual es la longitud en twips de un texto cuya fuente es negrita Times New Roman 10 para redimensionar el rptlabel. la propiedad CanGrow no me sirve porque crece en vertical y yo quiero que crezca en horizontal
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:urge ayuda:NECESITO SABER LA LONGITUD EN TWIPS

Publicado por Cecilia Colalongo (3116 intervenciones) el 20/02/2004 10:55:10
Si el texto es variable y ya lo tienes, lo colocas en un Label invisible de un Form y haces el cálculo que te mencioné y ese número luego lo fijas para el rptLabel.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar