cancel
Showing results for 
Search instead for 
Did you mean: 

System.Runtime.InteropServices.COMException (0x80040154): Class not registe

Former Member
0 Kudos

I got this error when i tried to print the report in Code(DOT NET).can any one help me out on this issue

System.Runtime.InteropServices.COMException (0x80040154): Class not registered - CrystalPrintControl

at CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.PrintReport(PrintReportOptions options)

at MMDProcessor.MMDProcessor.printreport(String strprintername, Int32 i)

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

A lot of info missing here... for starters:

1) What product are you using?

2) What is the version of the product?

3) What SDK? (CR, RAS)

4) What version of .NET?

5) What OS?

5) is this happening on your dev computer or after you deploy the app?

Also, try searching for the error. Use the search box at the top right of this web page, and also search the forums. Here and at

Ludek

Follow us on Twitter http://twitter.com/SAPCRNetSup

Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Former Member
0 Kudos

hi ludek,

Here is the info's t

1) What product are you using?

we using crystal report 2008

Its the windows service, dynamically load the RPT from Report Server using ReportClientDocument object and print the rpt

2) What is the version of the product?

Its version 1

3) What SDK? (CR, RAS)

I can't get u

4) What version of .NET?

Visual studio 2008

5) What OS?

Windows server 2003

5) is this happening on your dev computer or after you deploy the app?

Error came on both the system (Server & Local) machine

here is some sample code:

string InfoQuery = "SELECT TOP 1 SIID, SI_NAME, SI_PARENTID FROM CI_INFOOBJECTS";

InfoQuery += " WHERE SIPROGID = 'CrystalEnterprise.Report'";

InfoQuery += " AND (SINAME = '" + MainReportFileName + "' or SI_NAME LIKE '" + MainReportFileName + " (%)')";

InfoQuery += " ORDER BY SIUPDATE_TS DESC";

PRINT STATEMENTS:

System.Drawing.Printing.PrintDocument pDoc = new System.Drawing.Printing.PrintDocument();

CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions rasPROpts = new CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions();

pDoc.PrinterSettings.PrinterName = strprintername;

rasPROpts.PrinterName = strprintername;

mmdprinter.PrinterName = strprintername;

rasPROpts.PaperSize = (CrPaperSizeEnum)cms_papersz;

if (mmdprinter.IsValid)

{

_Rpt.PrintOutputController.PrintReport(rasPROpts); // GOT ERROR IN THIS LINE

printstatus = true;

}

_InfoObjects = InfoStore.Query(InfoQuery);

Former Member
0 Kudos

I get the same error when i'm trying to acces to a crystal report located on a crystal server.

SessionMgr session = new SessionMgr();


On debug, this line return :System.Runtime.InteropServices.COMException
La récupération de la fabrique de classe COM pour le composant avec le CLSID {} a échoué en raison de l'erreur suivante : 80040154 classe non enregistrée. (Exception de HRESULT : 0x80040154 (REGDB_E_CLASSNOTREG)) à CrystalDecisions.Enterprise.SessionMgr..ctor().

How can i solve it ?

I'm using :

- on server
   - Crystal Server 2013

- on development computer
  - Windows XP 32 bit

  - Crystal Server 2011

.NET 4.0

former_member188030
Active Contributor
0 Kudos

This error is because you are trying to hit CR Server 2013 using CR Server 2011 .NET SDK.

The SDK (on development machine) should be of the same version and pacth level as the server.

Download CR Server 2013 .NET runtime (MSI) from SMP and Install the package on the development machine.

Recompile the app with CRS 2013 assembly references.

Thanks,

Bhushan

Former Member
0 Kudos

Is the CR Server 2013 .NET runtime the file downloadable on this link part "VS2010" ? http://wiki.scn.sap.com/wiki/display/BOBJ/Which+Crystal+Reports+assembly+versions+are+supported+in+w...


former_member183750
Active Contributor
0 Kudos

No it is not. CR Server is considered to be an Enterprise product and as such file downloads are only available from the SAP Market Place, via and S user ID. See your SAP admin or SAP rep for details.

- Ludek

Former Member
0 Kudos

Sorry, but I was wrong in my first message about softwares used on the development computer.

It's not

- Windows XP 32 bit

- Crystal Server 2011

But

-  Windows XP 32 bit

- Crystal Report 2011 (developper version)

So can you reconsider my first message with this new element ?

former_member183750
Active Contributor
0 Kudos

Hi Martie

Before we start, we have to get the product you are using correct. CR 2011 does not install any SDK.

So, perhaps the best thing to do is for you to let me know what CR references you are making in your application and the version of the references used.

- Ludek

Former Member
0 Kudos

I've made references to following dll :

  • CrystalDecisions.Enterprise.Framework
  • CrystalDecisions.Enterprise.InfoStore
  • CrystalDecisions.Enterprise.Viewing.ReportSource
  • CrystalDecisions.ReportAppServer.Controllers


located in c:\windows\assembly\gac.


For all of them, the version is 11.5.3300.

former_member183750
Active Contributor
0 Kudos

OK. Referring to your post from April 15 (and I am only pointing this out to demo the importance of correct info):


It's not

- Windows XP 32 bit

- Crystal Server 2011

But

-  Windows XP 32 bit

- Crystal Report 2011 (developer version)

1) You are not using Crystal Reports 2011, or Crystal Server 2011. These have a version of 14.0.x.

2) You are using Crystal Reports Server XI R2 (v. 11.5) or BOE XI R2 (v. 11.5).

3) CR Server 2013 is versioned as 14.1.x (just clearing up post from April 14).

I do realize this is confusing, so no worries, at least we're clear now . So, moving on. BOE XI R2 has been out of support since June 2011. However patches, runtime, etc., are still available from the SAP Support Portal (S user login required). For details, please see How to obtain SAP BusinessObjects Enterprise XIR2 Patches and Full Builds.

- Ludek

Former Member
0 Kudos

I think, the CRuntime_13_0_5 is installed on this computer.

What is the version name of this runtime ?

former_member183750
Active Contributor
0 Kudos

. 13.0.5 does not install these assemblies:

  • CrystalDecisions.Enterprise.Framework
  • CrystalDecisions.Enterprise.InfoStore
  • CrystalDecisions.Enterprise.Viewing.ReportSource
  • CrystalDecisions.ReportAppServer.Controllers



- Ludek

Answers (0)