cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal - índice fuera de los límites de la matriz

Former Member
0 Kudos

Hola a todos!!

Tenía configurados varios informes con tamaño de papel Roll Paper. Recientemente se migró al PL 11 de la 8.82 y ahora no puedo imprimir esos tickets directamente porque SAP me arroja este error: índice fuera de los límites de la matriz.

Para poder imprimirlos, tengo que configurar el tamaño del papel manualmente, porque SAP guarda el tamaño de papel A4.

¿Alguien me puede recomendar por dónde revisar?

Los informes ya tienen configurado el tamaño de papel desde Crystal, y en SAP, ya tienen configurado la impresora que imprimen en esa medida.

Gracias!!!

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member188440
Active Contributor
0 Kudos

Revisate la configuración de la impresora predeterminada, a veces haces el cambio en panel de control en tu pc pero SAP los ignora

Otra cosa, te recomiendo que luego de hacer migraciones, vuelvas a mapear tus reportes desde sap, no se que version tienes (2007,8.8x) pero tambien eso ayuda

SAludos!

Former Member
0 Kudos

Gracias Mauricio!

La configuración de la impresora es correcta... y sí, volví a subir el informe nuevamente y nada...

¿Algo más que pueda revisar?

Gracias de antemano

former_member188440
Active Contributor
0 Kudos

Tendras una imagen del error?

Former Member
0 Kudos

Es simplemente una cintilla roja, que dice "índice fuera de los límites de la matriz." O en inglés: "index was outside the bounds of the array."

Para poder imprimir, necesito configurar cada vez, las propiedades de la impresora...

former_member188440
Active Contributor
0 Kudos

No se si ya revisaste esta nota de SAP

Symptom

  • Custom paper size is lost at client side
  • Error : "Index was outside the bounds of the array."


Reproducing the Issue

  1. An ASP.NET application uses the Crystal Reports XI .NET SDK as the reporting development tool
  2. Create a custom paper size form for use in Crystal Reports on IIS machine. (Refer to Note 1214081: How to create a custom paper size form for use in Crystal Reports )
  3. Design a report using a custom paper size
  4. The report is displayed as expected in CrystalReportWebViewer via IE at any client machine
  5. Click EXPORT or PRINT on toolbar in CrystalReportWebViewer
  6. The custom paper size is lost or get "Index was outside the bounds of the array" error.

CauseThis is the expected behavior. Form ID of custom paper size rather than form name or width/height size is saved with the report file. However, form ID of custom paper size will not be same on every machine. Exception: Form ID of standard paper size (such as: LETTER, A4) is identical on all machines. Therefore, when the report is printed or exported on client machine via IE, it is impossible to pick up the same form ID so that the custom paper size is lost.

ResolutionWorkaround:   EXPORTING:

  • Export the report into PDF or other format (except: RPT) at IIS Server side so it can still use and maintain the FORM ID of custom paper size on server machine (rather than client machine), then stream it back to client machine's browser.

           reportDocument.ExportToHttpResponse(ExportFormatType.PortableDocument,Response, True, "test")   PRINTING:

  • Use PDF printmode instead of ActiveX printmode of CrystalReportViewer. It can still use and maintain the FORM ID of custom paper size on server machine (rather than client machine).

            CrystalReportView1.PrintMode = CrystalDecisions.Web.PrintMode.Pdf

Former Member
0 Kudos

Gracias, no... la verdad no la encontré...

Déjame checar: todo eso pasa igual... aunque tenemos Crystal 2008...

Lo reviso y te comento...

Gracias!!

Former Member
0 Kudos

Hola Mauricio, no, no funcionó...

Qué número de nota es la que me envías? No la encontré ...

Vi otras notas, y todas hablan de error de aplicación, futuras correcciones... La que tú me mencionas, no dice en qué versión o parche se corregirá o algo así?

Saludos, muchas gracias