WebReport (ArgumentOutOfRangeException) - Index of Range

ArcanjoArcanjo Brazil
edited 2:58AM in FastReport .NET
Dear friends,

In the "WebReport" component, when I click on the "Print" or "Export" to format "Adobe Acrobat" is shown the exception message:

(Index out of Range)
[ArgumentOutOfRangeException: O ?­ndice estava fora do intervalo. Ele deve ser n??o-negativo e menor que o tamanho da cole?§??o.Nome do par??metro: index])
System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) +64
System.ThrowHelper.ThrowArgumentOutOfRangeException() +15
System.Collections.Generic.List`1.set_Item(Int32 index, T value) +2532052
FastReport.Export.Pdf.PDFExport.Wts0ECPAI(dZREcEvOjF6I4a8SD4T ) +7408
FastReport.Export.Pdf.PDFExport.IKjSOM4t0() +139
FastReport.Export.Pdf.PDFExport.Finish() +42
FastReport.Export.ExportBase.Export(Report report, Stream stream) +561
FastReport.Web.WebReport.ExportPdf() +516
FastReport.Web.WebReport.0JItpW6kP(Object , ImageClickEventArgs ) +5
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +108
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +118
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565


Environment: Windows Vista, IIS7, VS 2008 (C#), WebReport version 1.4.30.

I saw the problem being presented in some forums in previous version. I would like some guidance.

Regards,

Arcanjo.

Comments

  • ArcanjoArcanjo Brazil
    edited 2:58AM
    One reason is to use functions as (in this case): WebReportMain.Report.Dispose(), before prepare the report.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.