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

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

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}")




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




if (strParam == "{?@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;


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.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Aug 22, 2016 at 02:05 PM

    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: SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads. 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 SAP Crystal Reports, version for Visual Studio, which is also where you would go for help with making these changes.


    Message was edited by: Dell Stinnett-Christy

    Add a comment
    10|10000 characters needed characters exceeded

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.