Display Version numbers

  • Thread starter Thread starter Vayse
  • Start date Start date
V

Vayse

On my Help/About screen, I'd like to display
1) The version number, as it appears in the Publish screen.
2) The version number of the Report Viewer control.

How would I do this?
Thanks
Vayse
 
Vayse said:
On my Help/About screen, I'd like to display
1) The version number, as it appears in the Publish screen.
2) The version number of the Report Viewer control.
<snip>

I suppose that you can retrieve the version number from the
System.Windows.Forms.Application.ProductVersion property (I assume
that will be the same as the published version number).

To get the version number of the Report Viewer control I *guess* that
it can be something like this:

<code>
Dim Version As String
Using R As New Microsoft.Reporting.WinForms.ReportViewer
Dim A As System.Reflection.Assembly = R.GetType.Assembly
Version = A.ImageRuntimeVersion
End Using
</code>

HTH.

Regards,

Branco.
 
Thanks.
The Report Viewer worked, but the Publish version number didn't. Halfway
there!
 
Back
Top