Display Version numbers

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
 
B

Branco Medeiros

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.
 
V

Vayse

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top