Exception: System.Collections.Generic.KeyNotFoundException

Posted by: dy on 25 June 2018, 8:28 am EST

    • Post Options:
    • Link

    Posted 25 June 2018, 8:28 am EST

    Hello Everyone, I hope you can help me…

    I’m using ActiveReport 6 and Since the last windows 10 update (KB4093112, Version 1709), I have an exception when I generate PDF:

    
    System.ArgumentOutOfRangeException: L'index était hors limites. Il ne doit pas être négatif et doit être inférieur à la taille de la collection.
    Nom du paramètre : index
       à System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
       à System.Collections.Generic.List`1.get_Item(Int32 index)
       à #mqc.#Vqc.#RZc(Int32 fontIndex, String fontName, FontStyle fontStyle, Single sizeInPoints, Boolean vertical)
       à DataDynamics.ActiveReports.Export.Pdf.PdfExport.#7pk(Document document, Stream stream, String pageRange)
       à DataDynamics.ActiveReports.Export.Pdf.PdfExport.Export(Document document, Stream stream, String pageRange)
       à DataDynamics.ActiveReports.Export.Pdf.PdfExport.Export(Document document, String filePath, String pageRange)
    
    

    So we download the trial of ActiveReport 12 and migrate to this. And now I have this exception:

    
    System.Collections.Generic.KeyNotFoundException: La clé donnée était absente du dictionnaire.
      à System.ThrowHelper.ThrowKeyNotFoundException()
      à System.Collections.Generic.Dictionary`2.get_Item(TKey key)
      à DataDynamics.DDLib.PdfEngine.PdfFonts.Dispose(Boolean disposing)
      à #mqc.#8qc.Dispose(Boolean disposing)
      à GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport.#7pk(SectionDocument document, Stream stream, String pageRange, Boolean withWatermark, Byte[]& xmpMetadata)
      à GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport.Export(SectionDocument document, Stream stream, String pageRange)
      à GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport.Export(SectionDocument document, String filePath, String pageRange)
    
    

    So can you help me ? Or do you have an idea ?

  • Posted 26 June 2018, 5:14 am EST

    Hello,

    You query has replied at the following link:

    https://www.grapecity.com/en/forums/activereports/active-reports-10167260-an

    Thanks,

    Mohit

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels