SAP Knowledge Base Article - Public

1477457 - How to enable/disable logging for the RDC?

Symptom

  • How to enable/disable logging for the Report Designer Component (RDC)?

Environment

  • Windows OS
  • Visual Basic 6.0
  • Crystal Reports XI R2
  • Crystal Reports XI R1

Resolution

Logging for the RDC SDK is controlled by some registry keys. The keys can be created manually, but it is easlier to create a .reg file and merge it into the registry.

  1. Open Notepad and copy the contents under Enable Logging.
  2. Save the file as craxdrt.logging ON.reg. Ensure Save as type is set to All Files (*.*)
  3. Repeat for Disable Logging, but name the file craxdrt.logging OFF.reg.
  4. Double click the craxdrt.logging ON.reg to turn on logging.
  5. Run your application that uses the RDC, then look in the users temp directory for the .log files. The .log files are written to the user temp directory.
    1. Windows XP, C:\Documents and Settings\<user>\Local Settings\Temp
    2. Windows Vista and 7, C:\Users\<user>\AppData\Local\Temp
  6. The .log files should be opened and analyzed in Excel.

Note: Application logging has a detrimental effect on performance. Logging should only be used when troubleshooting or attempting to diagnose an issue.

Crystal Reports XI R2

Enable Logging

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.5\Crystal Reports\logging\craxdrt.Diagnostics]
"Destinations"=dword:00000003
"Position"=dword:00000002
"LogErrorsOnly"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.5\Crystal Reports Designer Component\Logging\craxdrt.methods]
"Position"=dword:00000002
"LogErrorsOnly"=dword:00000000
"Destinations"=dword:00000003

Disable Logging

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.5\Crystal Reports\logging\craxdrt.Diagnostics]
"Destinations"=dword:00000000
"Position"=dword:00000000
"LogErrorsOnly"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.5\Crystal Reports Designer Component\Logging\craxdrt.methods]
"Position"=dword:00000000
"LogErrorsOnly"=dword:00000000
"Destinations"=dword:00000000

Crystal Reports XI R1

Enable Logging

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.0\Crystal Reports\logging\craxdrt.Diagnostics]
"Destinations"=dword:00000003
"Position"=dword:00000002
"LogErrorsOnly"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.0\Crystal Reports Designer Component\Logging\craxdrt.methods]
"Position"=dword:00000002
"LogErrorsOnly"=dword:00000000
"Destinations"=dword:00000003

Disable Logging

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.0\Crystal Reports\logging\craxdrt.Diagnostics]
"Destinations"=dword:00000000
"Position"=dword:00000000
"LogErrorsOnly"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.0\Crystal Reports Designer Component\Logging\craxdrt.methods]
"Position"=dword:00000000
"LogErrorsOnly"=dword:00000000
"Destinations"=dword:00000000

Keywords

trace tracing craxdrt craxdrt.dll craxddrt vb6 COM , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , How To

Product

SAP Crystal Reports XI ; SAP Crystal Reports XI R2