This is a migrated thread and some comments may be shown as answers.

Reporting - getVersion method

3 Answers 20 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 06 Jan 2014, 06:05 PM
Does the Reporting classes have a getVersion method?

Your AJAX product has the following: 

Telerik.Web.UI.Common.Version.GetVersion()

Something like this should be available via all your products.

3 Answers, 1 is accepted

Sort by
0
KS
Top achievements
Rank 1
answered on 09 Jan 2014, 08:57 AM
Get the loaded assemblies  AppDomain.CurrentDomain.GetAssemblies(), the ones related to Telerik Reporting, and their version 
FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(assembly.Location);
string version = fvi.FileVersion;

Just, what is the idea behind getting the version?

-KS
0
Peter
Top achievements
Rank 1
answered on 09 Jan 2014, 01:02 PM
For an About dialog of sorts.

For some reason, the ASP.NET AJAX team thought it was a good idea to provide a GetVersion() property.  Since Telerik is a big company, I thought they should consider standardizing properties and methods were appropriate.
0
KS
Top achievements
Rank 1
answered on 14 Jan 2014, 01:24 PM
I see.. reports are actually a library, where the get version info thing can be added. When the version is changed web.config, page registrations are updated.(one more place the version can be obtained appSettings).

-KS
Tags
General Discussions
Asked by
Peter
Top achievements
Rank 1
Answers by
KS
Top achievements
Rank 1
Peter
Top achievements
Rank 1
Share this question
or