cancel
Showing results for 
Search instead for 
Did you mean: 

Installed CR 2016 On my Windows Server 2012 - does not working at run time.

Former Member
0 Kudos

Hi Software Support and Maintenance,

Up to now, We are using Interop.CRAXDDRT.dll, v11.0.0.0 runtime in VS 2012 .NET to create and export reports in  PDF format on Windows server 2008 R2 62-bit.


And we are using the following CR objects:


using CRAXDDRT; // where this dll is copied to this application  folder and referenced to it

…….


CRAXDDRT.Application app = new CRAXDDRT.ApplicationClass();

CRAXDDRT.Report rpt = app.OpenReport(“reportname.rpt”, null);

  rpt.Database.LogOnServer("crdb_odbc.dll", "ServerName", "DatabseName", "UserId", "Password");


   CRAXDDRT.ParameterFieldDefinitions parameters = rpt.ParameterFields;

                                foreach (CRAXDDRT.ParameterFieldDefinition p in parameters)

                                {

                                    string strParam = p.Name.ToString();

                                    if (strParam != null)

                                    {

                                        if (strParam == "{?@beginDate}")

                                        {

                            

                                            p.AddCurrentValue((string)_beginDate);

                                        }

                                        if (strParam == "{?@endDate}")

                                        {

                                            p.AddCurrentValue(_endDate);

                                        }

                                        if (strParam == "{?@clientID}")

                                        {

                                            p.AddCurrentValue(_clientID);

                                        }

                                    }

                                }

                                string outputPath = (string)appRead.GetValue("OUTPUT_PATH", typeof(string));

                                rpt.ExportOptions.DestinationType = CRAXDDRT.CRExportDestinationType.crEDTDiskFile;

                                rpt.ExportOptions.FormatType = CRAXDDRT.CRExportFormatType.crEFTPortableDocFormat;

                                rpt.ExportOptions.DiskFileName = outputPath + _reportName;

                                rpt.Export(false);


And it work fine and generated reports In  PDF format.



But recently we are going move all our application into a new Windows server 2012 R2  62-bit, x64-based, and so I have copied my full application from root into the new Windows server 2012 R2(where you can see part of it at top) and then installed “SAP Crystal Reports 2016 Support Pack 2 Version 14.2.21975 , Product type:Evaluation”, and when I run the application it throw me an exception:


Retrieving the COM class factory for component with CLSID {6BFF10C6-C3F9-4EF9-A316-F37C85D5117B} failed due to the following error: 80040154.


And when I go to the previous server registry and search for '{6BFF10C6-C3F9-4EF9-A316-F37C85D5117B}'  I can see that under 'CrystalDesignRunTime.Application', where this SID is not in my new server registry and when I try to register  Interop.CRAXDDRT.dll in new server to generate report in PDF format, what I have tried to register was:

I tried this:

cd c:\windows\syswow64

   regsvr32 Interop.CRAXDDRT.dll

-> doens't work


I get this error:

'The module "Interop.CRAXDDRT.dll" was loaded but the entry-point DIIRegisterServer was not found.

Make sure that  "Interop.CRAXDDRT.dll" is a valid DLL or OCX file and then again.

                              

So let me know how can I generate or export report at runtime in PDF format Using installed Crystal Report 2016 using Microsoft Visual Studio 2012 .NET to create or export reports in PDF format.

Regards,


Reza.



Accepted Solutions (1)

Accepted Solutions (1)

DellSC
Active Contributor
0 Kudos

This is an OLD version of the SDK that has been out of support for a number of years and which was designed for use in VS 2008 or older.  It was never designed to work with the more modern operating systems.

You'll need to change your application to use the Crystal for Visual Studio SDK that's available here:  .  The "Install Executable" is for integrating into Visual Studio 2010 or newer.  The other installs are runtimes for use when deploying your application.

Unfortunately, the COM-based RDC component that you're using is no longer supported.  So, you'll need to look at using the RAS SDK that's included in Crystal for VS for creating reports.  There are links to sample code for how to do this here , which is also where you would go for help with making these changes.

-Dell

Message was edited by: Dell Stinnett-Christy

Answers (0)