Skip to Content
0
Former Member
Dec 02, 2010 at 04:05 PM

Problem with Crystal Reports for Visual Studio 2010 Production Redist 32 b.

41 Views

Hello I have problem with production Relase of CR for VS2010 Redist 32 bit. After instalation and executing sample code (this code work`s ok on Developer maching with CR for VS2010 Complete Package) i have strange error :

Runtime.InteropServices.COMException (0x80040154): Class is not registered - CrystalPrintControl at CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.PrintReport(PrintReportOptions options)

Sample code :

try
            {
                ISCDReportClientDocument dokumentKlient;
                MessageBox.Show("Drukowanie 1 ");

                dokumentKlient = ((ReportDocument)crystalReportViewer1.ReportSource).ReportClientDocument;
                //dokumentKlient.Open((ReportDocument)crystalReportViewer1.ReportSource).ReportClientDocument, 0);

                //((ReportDocument)crystalReportViewer1.ReportSource).ReportClientDocument.PrintOutputController(opcjeDrukowania);

                MessageBox.Show("Drukowanie 2 ");

                PrintReportOptions opcjeDrukowania = new PrintReportOptions();
                MessageBox.Show("Drukowanie 3 ");

                opcjeDrukowania.JobTitle = "test";
                //opcjeDrukowania.PrinterName = "HP LaserJet 1020";
                //opcjeDrukowania.PrinterName = "HP DeskJet 340";
                
                opcjeDrukowania.PrinterName = textBox1.Text;
                opcjeDrukowania.NumberOfCopies = 1;

                MessageBox.Show("Drukowanie 4 ");

                //((ReportDocument)crystalReportViewer1.ReportSource).ReportClientDocument.PrintOutputController.PrintReport(opcjeDrukowania);
                
                MessageBox.Show("Drukowanie 4n ");

                dokumentKlient.PrintOutputController.PrintReport(opcjeDrukowania);

                MessageBox.Show("Drukowanie 5 ");
            }
                catch (Exception exe) { MessageBox.Show("Drukowanie" + exe); 
            }
        }

Befor instaling Productuin Version on Developer Machin and on Workstation evrything work`s ok (before i used CRforNET40_x86 - Beta Relase) . I don`t have any idea to resolve thi`s problem,

PROJECT ARCH : x86

NET : 3.5

VS2010

DEV MACHINE OS : Win 7 64 bit.

PROD MACHINE OS: Win xp 32 bit.

Edited by: celmar on Dec 2, 2010 5:11 PM

Edited by: celmar on Dec 2, 2010 5:12 PM

Edited by: celmar on Dec 2, 2010 5:12 PM