I would like to log the version of the report designer and report viewer on startup. How can I query the version or build number of StiWebDesigner or StiWebViewer or StiWebViewerFx?
Thanks!
Retrieve version number
-
- Posts: 251
- Joined: Fri Feb 04, 2011 11:46 am
- Location: San Diego, CA
Retrieve version number
Hello,
You can use this code:
Thank you.
You can use this code:
Code: Select all
private string GetVersion()
{
Assembly assembly = System.Reflection.Assembly.GetAssembly(typeof(StiReport));
Version version = assembly.GetName().Version;
return string.Format("{0}.{1}.{2} from {3:D}", version.Major.ToString(), version.Minor.ToString(), version.Build.ToString(), StiVersion.CreationDate);
}
-
- Posts: 251
- Joined: Fri Feb 04, 2011 11:46 am
- Location: San Diego, CA
Retrieve version number
Actually StiVersion.Version is perfect! thanks!
Retrieve version number
Ok!
Thank you.
Thank you.