- ' Reporte de CP Reparaciones 
- Sub PrintInReport(strNumBoleta As String) 
-     Dim strReport As String 
-     Dim strReportFilename As String 
-     Dim strTitle As String 
-     On Error GoTo ErrorPrintReport 
-     strReport = "Entrada.rpt" 
-     strReportFilename = gstrAppPath & strReport 
-     If Not FileExists(strReportFilename) Then 
-         gstrMsg = "No es posible mostrar el reporte." & _ 
-         "Falta el archivo de Reporte: " & strReport & vbCrLf & _ 
-         "Debe estar en el mismo directorio que " & gstrAppTitle 
-         MsgBox gstrMsg, vbCritical 
-     End If 
-     strTitle = "Reporte de Entrada" 
-     'open and fill report 
-     With CrystalReport 
-         .ReportFileName = strReportFilename 
-         '.Password = gstrPG 
-         .Password = Chr(10) & gstrPG 
-         .ReportTitle = strTitle 
-         .DataFiles(0) = gstrDBMainLargeFName 
-         .SelectionFormula = "{Identificacion.NumBoleta}='" & strNumBoleta & "'" 
-         .PrinterCopies = 1 
-         .PrinterCollation = crptDefault 
-         .WindowControls = True 
-         .WindowBorderStyle = crptSizable 
-         .WindowControlBox = True 
-         '.WindowState = crptNormal 
-         .WindowState = crptMaximized 
-         .WindowTitle = .ReportFileName 
-         .Destination = crptToWindow 
-         Screen.MousePointer = vbDefault 
-         .PrintReport 
-         If .LastErrorNumber > 0 Then 
-             gstrMsg = "Error en Reporte: " & .LastErrorString & .LastErrorNumber 
-             MsgBox gstrMsg 
-         End If 
-     End With 
- Exit Sub 
- ErrorPrintReport: 
-     GenErrorHandler "frmMain/PrintMainReport", Err.Number, Err.Description 
-     Debug.Print "Error en Crystal: " & CrystalReport.LastErrorString & CrystalReport.LastErrorNumber 
- End Sub 
-   
-