on 05-13-2011 11:15 AM
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)
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]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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);
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
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
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...
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
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.