Salto de Linea - ya intente todo
Publicado por Ricardo Uribe (5 intervenciones) el 20/02/2008 17:32:24
Hola Foro, aqui molestando otra vez.
Necesito enviar salto de linea a un control TextObject de Crystal, desde VB6.0
he intentado por todos los medios y nada.Y no puedo dibujar una cantidad de TextObject ya q no se el numero de lineas q saldran generadas.
Trabajo con VB6.0, SQL 2000, WIN 2003, Crystal 9.2
Encontre esta solucion en ingles, pero no he podido hacerla.
Contact Technical Support
How to use chr(13) in a Text Object at Runtime
The information in the article refers to:
Report Designer Component 7
Applies to:
Reported version only
Text Objects
Formatting
OnFormat Section Events
Synopsis
The code MyTextObject.SetText("Hi" & chr(13) & "World") is added to the
Section On Format Event. The chr(13) shows up as a delimiter character
instead of a line feed.
Solution
This does not work in the Section On Format Event.
Workaround:
1. Set the Text Object to Can Grow.
2. Enter a Carriage Return in the Text Object to make it a complex Text
Object (otherwise it defaults to a simple Text Object which displays only
basic ASCII). This will be overwritten by the SetText.
3. Add the code to the FormLoad event of the CRViewer Form.
Report. MyTextObject.SetText("Hi" & chr(13) & "World").
This is a known issue and has been tracked. Track ID 21712.
Muchas gracias por su ayuda.
Necesito enviar salto de linea a un control TextObject de Crystal, desde VB6.0
he intentado por todos los medios y nada.Y no puedo dibujar una cantidad de TextObject ya q no se el numero de lineas q saldran generadas.
Trabajo con VB6.0, SQL 2000, WIN 2003, Crystal 9.2
Encontre esta solucion en ingles, pero no he podido hacerla.
Contact Technical Support
How to use chr(13) in a Text Object at Runtime
The information in the article refers to:
Report Designer Component 7
Applies to:
Reported version only
Text Objects
Formatting
OnFormat Section Events
Synopsis
The code MyTextObject.SetText("Hi" & chr(13) & "World") is added to the
Section On Format Event. The chr(13) shows up as a delimiter character
instead of a line feed.
Solution
This does not work in the Section On Format Event.
Workaround:
1. Set the Text Object to Can Grow.
2. Enter a Carriage Return in the Text Object to make it a complex Text
Object (otherwise it defaults to a simple Text Object which displays only
basic ASCII). This will be overwritten by the SetText.
3. Add the code to the FormLoad event of the CRViewer Form.
Report. MyTextObject.SetText("Hi" & chr(13) & "World").
This is a known issue and has been tracked. Track ID 21712.
Muchas gracias por su ayuda.
Valora esta pregunta
0