Skip to Content
author's profile photo Former Member
Former Member

Custom tool error: "Code generator 'ReportCodeGenerator' failed.

I have a legacy application built in an earlier version of Visual Studio. The project was converted to Visual Studio 2010 and when I attempt to view reports I get the following error:

================================================================================

Error 2 Custom tool error: "Code generator 'ReportCodeGenerator' failed. Exception stack = CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException: UFL 'u25samp1.dll' that implements this function is missing.

Error in File CBC2 {ABC63E6A-C35C-46B1-8D6C-9DDFB9F9D397}.rpt:

Error in formula phone:

'picture({fac.fac_tel}, '(xxx) xxx-xxxx')

'

UFL 'u25samp1.dll' that implements this function is missing.

at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)

at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)

at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()

--- End of inner exception stack trace ---

at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()

at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)

at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)

at CrystalDecisions.VSDesigner.CodeGen.ReportClassWriter..ctor(String filePath)

at CrystalDecisions.VSDesigner.CodeGen.ReportClassWriter..ctor(String filePath, String resourceNamespace)

at CrystalDecisions.VSDesigner.CodeGen.ReportCodeGenerator.GenerateCode(String inputFileName, String inputFileContent)" C:\Users\tsygitowicz\Documents\Visual Studio 2010\Projects\startportal\ST@RTPortal\Reports\CBC2.rpt 1 1 ST@RTPortal

========================================================================================

The missing file is actually on my hard drive in the path:

C:\Program Files (x86)\Business Objects\Common\2.8\bin

I also placed it in my project bin directory as well.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Sep 02, 2011 at 03:04 PM

    Hello,

    Only version of CR runtime supported in VS 2010 is CR for VS 2010, see this page for all downloads:

    http://www.sdn.sap.com/irj/boc/crystalreports-dotnet ( bottom of the page )

    Copy the UFL to the

    C:Program Files (x86)SAP BusinessObjectsCrystal Reports for .NET Framework 4.0CommonSAP BusinessObjects Enterprise XI 4.0win32_x86

    It's also only a 32 bit UFL. If you need to build one for x64 then search kbase for a sample UFL in .net and write your own version.

    Don

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Don Williams

      I have a OLAP Crystal Report(Version CR 2008)which is using the SSAS data cube.ABle to see the drilldown options in the CR tool.

      But When I try to embed this in ASP.net (2008) crystal report viewer, I am getting the error like "Not able to open OLAP Cube"

      Please need the code to connect OLAP Crystal report or need assistance

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.