none
Error al imprimir RRS feed

  • Pregunta

  • Saludos,

    Sucede cuando intento imprimir el reporte, varias veces, después de cierta cantidad de veces me da el error.

    codigo VB.NET

    /******/  CrystalReport_matri1.PrintToPrinter(1, False, 0, 0)  en esta linea de codigo me da el error.

    STO ES LO Q ME MUESTRA EL ERROR

    ************** Texto de la excepción **************
    System.OutOfMemoryException: Memoria insuficiente.
       en System.Drawing.Graphics.CheckErrorStatus(Int32 status)
       en System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Int32 srcX, Int32 srcY, Int32 srcWidth, Int32 srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttrs, DrawImageAbort callback, IntPtr callbackData)
       en System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Int32 srcX, Int32 srcY, Int32 srcWidth, Int32 srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttr)
       en CrystalDecisions.Shared.PageRender.draw_ImageInstance(ImageObjectInstance imageInst, Graphics g)
       en CrystalDecisions.Shared.PageRender.draw_ReportObjectInstance(ReportObjectInstance instance, Graphics g, Rectangle clipRect)
       en CrystalDecisions.Shared.PageRender.draw_SectionInstance(SectionInstance section, Graphics g, Rectangle clipRect)
       en CrystalDecisions.Shared.PageRender.Render(PageObject page, Graphics g, Graphics device_g)
       en CrystalDecisions.Shared.PageRender.Render(PageObject page, Graphics g)
       en CrystalDecisions.Shared.PrintingHelper.PrintPage(PrintPageEventArgs e, PageObject page, PrintLayoutSettings layoutSettings, Int32& currentPageNumber, Int32& currentHorizontalPageNumber)
       en CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintPageEventHandler(Object sender, PrintPageEventArgs e)
       en System.Drawing.Printing.PrintDocument.OnPrintPage(PrintPageEventArgs e)
       en System.Drawing.Printing.PrintDocument._OnPrintPage(PrintPageEventArgs e)
       en System.Drawing.Printing.PrintController.PrintLoop(PrintDocument document)
       en System.Drawing.Printing.PrintController.Print(PrintDocument document)
       en System.Drawing.Printing.PrintDocument.Print()
       en CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
       en CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
       en SoftwareSinfónica.frm_matricula_imprimir.imprimir_matricula() en E:\DOC-ADW\Desktop\nueva version sinfo\SoftwareSinfónica\SoftwareSinfónica\frm_matricula_imprimir.vb:línea 86
       en SoftwareSinfónica.frm_matricula_nueva.txt_matricula_nueva_Click(Object sender, EventArgs e) en E:\DOC-ADW\Desktop\nueva version sinfo\SoftwareSinfónica\SoftwareSinfónica\frm_matricula_nueva.vb:línea 300
       en System.Windows.Forms.Control.OnClick(EventArgs e)
       en System.Windows.Forms.Button.OnClick(EventArgs e)
       en System.Windows.Forms.Button.PerformClick()
       en SoftwareSinfónica.frm_matricula_nueva.Button1_Click(Object sender, EventArgs e) en E:\DOC-ADW\Desktop\nueva version sinfo\SoftwareSinfónica\SoftwareSinfónica\frm_matricula_nueva.vb:línea 329
       en System.Windows.Forms.Control.OnClick(EventArgs e)
       en System.Windows.Forms.Button.OnClick(EventArgs e)
       en System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       en System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       en System.Windows.Forms.Control.WndProc(Message& m)
       en System.Windows.Forms.ButtonBase.WndProc(Message& m)
       en System.Windows.Forms.Button.WndProc(Message& m)
       en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    --
    domingo, 2 de marzo de 2014 22:15