Nabucodonosor16 de Noviembre del 2004
PreguntaHola a todos
Tengo un problema al tratar de mandar la accion de mostrar el Reporte por medio de un boton que me llama al DataReport, me sale un error que me dice Que el ancho del informe es mayor que el ancho del papel, donde puedo cambiar esa opción para que no me salga este error.
Utilizo
Set ptr = Printer
With ptr
gRptCurOrientation = groo.GetPrinterOrientation( _
.DeviceName, .hDC)
gRptNewOrientation = gRptCurOrientation
.ScaleMode = vbTwips
gRptWidthPortrait = .Width - objRpt.LeftMargin - _
objRpt.RightMargin
gRptWidthLandscape = .Height - objRpt.LeftMargin - _
objRpt.RightMargin
If gRptCurOrientation = vbPRORLandscape Then
'//Swap
tmp = gRptWidthPortrait
gRptWidthPortrait = gRptWidthLandscape
gRptWidthLandscape = tmp
objRpt.ReportWidth = gRptWidthLandscape
End If
End With
Set ptr = Nothing
Por su ayuda les anticipo las gracias
Tengo un problema al tratar de mandar la accion de mostrar el Reporte por medio de un boton que me llama al DataReport, me sale un error que me dice Que el ancho del informe es mayor que el ancho del papel, donde puedo cambiar esa opción para que no me salga este error.
Utilizo
Set ptr = Printer
With ptr
gRptCurOrientation = groo.GetPrinterOrientation( _
.DeviceName, .hDC)
gRptNewOrientation = gRptCurOrientation
.ScaleMode = vbTwips
gRptWidthPortrait = .Width - objRpt.LeftMargin - _
objRpt.RightMargin
gRptWidthLandscape = .Height - objRpt.LeftMargin - _
objRpt.RightMargin
If gRptCurOrientation = vbPRORLandscape Then
'//Swap
tmp = gRptWidthPortrait
gRptWidthPortrait = gRptWidthLandscape
gRptWidthLandscape = tmp
objRpt.ReportWidth = gRptWidthLandscape
End If
End With
Set ptr = Nothing
Por su ayuda les anticipo las gracias
