Crystal Report - Salto de Linea - ya intente todo

 
Vista:

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.
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:Salto de Linea - ya intente todo

Publicado por Manolo (239 intervenciones) el 21/02/2008 16:21:44
Te envio un ejemplo a tu correo
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:Salto de Linea - ya intente todo

Publicado por jmmaruny (1 intervención) el 25/03/2008 11:07:40
Los saltos de linea funcionan normalmente (vbcrlf o los dos cuadritos si lo traes desde un campo de base de datos) el problema es que tienes que establecer la propiedad CanGrow a true y asignar tamaño y ancho del TextObject adecuado
Text1.CanGrow = true
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:Salto de Linea - ya intente todo

Publicado por jsrr (1 intervención) el 20/01/2010 18:57:25
solo se necesita establecer la opcion puede crecer en las propiedades del objeto y el numero de lineas maximo y ya esta =)
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