![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#7
|
||||
|
||||
|
explico algo adicional lepe
el reporte ya esta diseñado pero no en el modo de diseño de delphi simplemente ya alguien lo diseño y necesito enviarle los datos que pide el reporte para que el me haga un preview ejemplo: el reporte se llama "balance _general.qr2" yo lo tomo de una ruta llamada "rutarepotes" := c\reportes, solo debo enviarles los parametros que el me pide lo y lo hago con este codigo: // Envia datos al Repoteador para hacer el Preview-------------------------------- procedure TConsultaBalGeneralForm.ReportPrinterDialogBeforeOpenDataset( DataSet: TDataSet); begin if DataSet is TQuery then begin If TQuery(DataSet).ParamCount>0 Then begin TQuery(DataSet).CLOSE; TQuery(DataSet).Params.ParamByName('ID_EMPRESA').asstring :=RXREPID_EMPRESA.AsString; TQuery(DataSet).Params.ParamByName('ID_SUCURSAL').asstring :=RxREPID_SUCURSAL.AsString; TQuery(DataSet).Params.parambyname('FECHA_CORTE').AsDATETIME :=INT(FechaF.Date); TQuery(DataSet).Params.parambyname('FECHA_CORTE_ANT').AsDATETIME :=INT(FechaI.Date); IF RadioClase.Checked THEN TQuery(DataSet).Params.ParamByName('NIVEL_CUENTA').Asstring :='1'; IF RadioGrupo.Checked THEN TQuery(DataSet).Params.ParamByName('NIVEL_CUENTA').Asstring :='2'; IF RadioCuenta.Checked THEN TQuery(DataSet).Params.ParamByName('NIVEL_CUENTA').Asstring :='3'; IF RadioSubCuenta.Checked THEN TQuery(DataSet).Params.ParamByName('NIVEL_CUENTA').Asstring :='4'; IF RadioAuxiliar.Checked THEN TQuery(DataSet).Params.ParamByName('NIVEL_CUENTA').Asstring :='5'; end; end; end; bueno si alguien sabe como enviarle parametros a un reporte si me explica mil gracias a todos por contestar.. ha olvidaba un pequeño detalle estoy ytilizando los componentes de qrdesing y el componente es ReportPrinterdialog o ReporDesingnerDialog ![]() Última edición por julyus fecha: 18-07-2006 a las 17:27:27. |
| Herramientas | Buscar en Tema |
| Desplegado | |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Problemas con actualizacion de Quick Report | danielcordovahe | Impresión | 4 | 08-02-2013 19:29:48 |
| Problemas Con Quick Report En Delphi | vick | Conexión con bases de datos | 0 | 27-09-2005 00:18:54 |
| Problemas quick report con windows XP | panchito | Impresión | 1 | 21-10-2004 23:32:46 |
| problemas quick report windows xp | mcenit | Impresión | 1 | 21-04-2004 13:32:46 |
| Quick Report | isc_hilda | Impresión | 3 | 17-04-2004 02:00:04 |
|