Skip to Content
avatar image
Former Member

How to Know What Version of crystal reports is being used in your current Project in VS2015

we have been given a task to upgrade the current Crystal reports version to new. we have just the Below information from previous deployment to execute following
CRRuntime_64bit_13_0.msi and CRRuntime_32bit_13_0.msi.

How to Know what version is being used currently.
also Need Details about EOSL Dates and new CR versions for VS 2015.

Thanks,

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 21, 2017 at 01:08 PM

    Hello,

    Re-Tagged post to CR for VS forum.

    First thing is do not install the MSI redist package on your DEV PC, it does not integrate into Visual Studio and is not required.

    All downloads are here:

    https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads

    First link is for installing CR for VS on your DEV PC:

    http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_19.exe

    You will need to recompile because there have been updates to the API's so it requires rebuilding the project.

    The easiest way to find the version is to look in Programs and Feature

    If you want to do it in code then something like this:

    foreach (Assembly MyVerison in AppDomain.CurrentDomain.GetAssemblies())
    {
    if (MyVerison.FullName.Substring(0, 38) == "CrystalDecisions.CrystalReports.Engine")
    {
    //File: C:\Windows\assembly\GAC_MSIL\CrystalDecisions.CrystalReports.Engine\13.0.2000.0__692fbea5521e1304\CrystalDecisions.CrystalReports.Engine.dll
    //InternalName: Crystal Reports
    //OriginalFilename:
    //FileVersion: 13.0.9.1312
    //FileDescription: Crystal Reports
    //Product: SBOP Crystal Reports
    //ProductVersion: 13.0.9.1312
    //Debug: False
    //Patched: False
    //PreRelease: False
    //PrivateBuild: False
    //SpecialBuild: False
    //Language: English (United States)

    System.Diagnostics.FileVersionInfo fileVersionInfo = System.Diagnostics.FileVersionInfo.GetVersionInfo(MyVerison.Location);
    txtRuntimeVersion.Text += fileVersionInfo.FileVersion.ToString();
    // check if CrsytalDecisions.Enterprise dll's can be loaded ( Anything but CR for VS - managed reporting )
    if (fileVersionInfo.FileVersion.Substring(0, 2) == "13")
    {
    btnRasOpen.Enabled = false;
    }
    CRVer = fileVersionInfo.FileVersion.Substring(0, 2);
    //return;
    }
    }

    //VB code
    //Imports CrystalDecisions.CrystalReports.Engine
    //Imports CrystalDecisions.Shared
    //Imports System.Reflection
    //Imports System.Runtime.InteropServices

    //Public Class Form1

    // Private Sub CrystalReportViewer1_Load(sender As Object, e As EventArgs) Handles CrystalReportViewer1.Load

    // For Each MyVerison As Assembly In AppDomain.CurrentDomain.GetAssemblies()
    // If MyVerison.FullName.Substring(0, 38) = "CrystalDecisions.CrystalReports.Engine" Then
    // 'File: C:\Windows\assembly\GAC_MSIL\CrystalDecisions.CrystalReports.Engine\13.0.2000.0__692fbea5521e1304\CrystalDecisions.CrystalReports.Engine.dll
    // 'InternalName: Crystal Reports
    // 'OriginalFilename:
    // 'FileVersion: 13.0.9.1312
    // 'FileDescription: Crystal Reports
    // 'Product: SBOP Crystal Reports
    // 'ProductVersion: 13.0.9.1312
    // 'Debug: False
    // 'Patched: False
    // 'PreRelease: False
    // 'PrivateBuild: False
    // 'SpecialBuild: False
    // 'Language: English (United States)

    // Dim fileVersionInfo As System.Diagnostics.FileVersionInfo = System.Diagnostics.FileVersionInfo.GetVersionInfo(MyVerison.Location)
    // MessageBox.Show(fileVersionInfo.FileVersion.ToString())

    // Return
    // End If
    // Next


    // Dim Report As New CrystalDecisions.CrystalReports.Engine.ReportDocument
    // Report.Load("C:\reports\formulas.rpt")
    // CrystalReportViewer1.ReportSource = Report
    // End Sub

    Add comment
    10|10000 characters needed characters exceeded