"Code generator 'ReportCodeGenerator' failed. when adding a report to a VB2003 project.

Last post 06-11-2009 5:38 AM by asif4ever4u. 2 replies.

Sort Posts:

  • "Code generator 'ReportCodeGenerator' failed. when adding a report to a VB2003 project.

    09-26-2008, 3:21 PM
    • Member
      point Member
    • crisedefoie
    • Member since 09-26-2008, 7:08 PM
    • Posts 1

    Good morning everybody, 

    First I want to warn that English is not my maternal language, so I hope that I will make myself clear.

    I have an application developped in VB.NET 2003 which includes many different designed with Crystal Reports 10.

    This summer, I receive a new computer which has VB.NET 2003, VB.NET 2005  and VB.NET 2008 installed on.

     Since then, when I want to add a new report to my project I get this error message :

    ""Path and name of my report".rpt(1): Custom tool error: "Code generator 'ReportCodeGenerator' failed.  Exception stack = System.Runtime.InteropServices.COMException (0xC0100006): ?
       at CrystalKeyCodeLib.KeyDecoderClass.ReadFromFile(String szFile)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.=()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.InternalInit()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()
       at CrystalDecisions.VSShell.CodeGen.ReportClassWriter..ctor(String filePath)
       at CrystalDecisions.VSShell.CodeGen.ReportCodeGenerator.GenerateCode(String inputFileName, String inputFileContent)"

     I have searched for in many web site and it seems that many people got this kind of errors .... but ...  even if I tried some tricks that I read, it still doesn't work.

    Is there a Crystal version problem or not ?      Maybe someone here would have the miracle solution ?  I hope so. 
     

    Thank you !

     

  • Re: "Code generator 'ReportCodeGenerator' failed. when adding a report to a VB2003 project.

    09-29-2008, 11:40 PM
    Answer

    Hi,

    I think the installers of the high version of Visual Studio change the Crystal Reports components used by Visual Studio 2003.

    We can try to reinstall it from your Visual Studio 2003 CDs.

     You can refer to http://support.microsoft.com/kb/193336.


    I look forward to hearing from you.

    Thomas Sun
    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
  • Re: "Code generator 'ReportCodeGenerator' failed. when adding a report to a VB2003 project.

    06-11-2009, 5:38 AM
    • Member
      2 point Member
    • asif4ever4u
    • Member since 08-15-2007, 1:29 PM
    • Posts 1

    Dear Brother

    You try this solution....when you create the rpt in vs2003, you have placed some grand total or

    summary total of field which have non-numeric datatype, like you have placed the max of vendor name

    field or count of such as formula field which have no formula defined.

    first remove them and try to create them with different logic....

     

    if you not found then try this trick, drop all summary totals, grand total or group totals and then re-create

    them in vs 2005, you problem will be solved i hope.


    regards

    M. Asif Shakir ( I am good na....)

    Assistant  Manager I.T

    Pak Suzuki Motor Company Pakistan

    Karachi, Pakistan

    Email : asif_4ever4u@hotmail.com

Page 1 of 1 (3 items)