Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/10/2011, 14:32
Avatar de lokoman
lokoman
 
Fecha de Ingreso: septiembre-2009
Mensajes: 502
Antigüedad: 14 años, 7 meses
Puntos: 47
Respuesta: imprimir el reporte actual

Hola!
Debes enviarle los filtros necesarios al reporte:

Código vb:
Ver original
  1. With CrystalReport
  2.          .ReportFileName = App.Path & "\Reporte.rpt"
  3.          .WindowTitle = "Titulo del reporte"
  4. '        ...
  5. '        ...
  6. '        ...
  7.        .DiscardSavedData = True ' Borrar datos almacenados
  8.  
  9.         .SelectionFormula = "{TABLA.CAMPO_DOCUMENTO} = " & intDOCUMENTO & " AND {TABLA.FECHA} = '" & strFECHA & " AND {TABLA.USUARIO_ID} = '" & strUserName & "'"
  10.  
  11.         .WindowShowCloseBtn = True
  12.         .WindowState = crptMaximized
  13.         .WindowShowPrintSetupBtn = True
  14.         .Destination = crptToWindow
  15.         .Action = 1
  16.     End With