pasar sentencia SQL a Crystal Report

06/10/2005 - 16:32 por Arturo Cabezon | Informe spam
Hola grupo
Tengo un reporte de Crystal creado en tiempo de diseño, pero ahora me
gustaría que la sentencia SQL la pueda armar en tiempo de ejecución con
algunos cambios (como por ejemplo filtros u orden). Como puedo hacer esto?
Muchas gracias.
Arturo
 

Leer las respuestas

#1 Edie
07/10/2005 - 22:10 | Informe spam
"Arturo Cabezon" escribió:

Hola grupo
Tengo un reporte de Crystal creado en tiempo de diseño, pero ahora me
gustaría que la sentencia SQL la pueda armar en tiempo de ejecución con
algunos cambios (como por ejemplo filtros u orden). Como puedo hacer esto?
Muchas gracias.
Arturo





OK AMIGO LO MAS SIMPLE DE HACER ES CREANDO UNA INSTANCIA DEL OBJETO REPORTE
Y ASIGNARLE UN NUEVO ORIGEN DE DATOS DE ESTA FORMA

DIM RPT AS NEW NOMBREDETUREPORTE()
RPT.REPORTSOURCE(DS)

DONDE DS ES LA INSTACIA U OBJETO DE UN DATASET AL QUE LE CARGAS LOS DATOS YA
FILTRADOS, Y QUE DEBE COINCIDIR CON LA CREACIÓN DE TU REPORTE TAL QUE SI
PUSISTE POR EJEMPLO EN TU REPORTE ESTOS CAMPOS DE UNA TABLA

TABLA = CLIENTE
Y LOS CAMPOS DE CLIENTE NOMBRE, ID, EDAD, DIRECCION,SALDO

ESTOS DEBEN SER IDENTICOS PARA EL DATASET

Preguntas similares