473,484 Members | 1,653 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Display Version numbers

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
Feb 1 '07 #1
2 3683
Vayse wrote:
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.

Feb 1 '07 #2
Thanks.
The Report Viewer worked, but the Publish version number didn't. Halfway
there!

"Branco Medeiros" <br*************@gmail.comwrote in message
news:11*********************@k78g2000cwa.googlegro ups.com...
Vayse wrote:
>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.

Feb 2 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3220
by: Sherman Willden | last post by:
I am trying to use Perl's XML::Twig to modify a version number in an XML document. At the very end of this posting is an excerpt from the xml document. Just before the xml excerpt is the Perl code...
13
40616
by: Dan R Brown | last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to break up this form into several "tabbed" sections, I break up the form using <div> tags. Each <div...
1
3107
by: Beowulf | last post by:
I'm having some difficulty and I can't for the life of me figure out why. I have a main report, rptMain, that contains a report header (displays the AppTitle), 3 group headers (one is a header...
13
3601
by: Ennio-Sr | last post by:
Hi all! After a very long struggle I finally succeded in transferring my old *.dbf file and the relating *.dbt (alias memo fields) to a pg table. For the time being I put the memo field in a...
7
45895
by: Mike L | last post by:
I want frmMain.text to show the current publish version. What is the code to get the current publish version? For example. frmMain.text = "My Application Version: " & project.publish.version ...
4
1391
by: Samantha | last post by:
I am new to Python and am attempting to write a routine that will display a five game selection for a power ball drawing. I think I have the random drawing set to work ok, but I want to have the...
18
2474
by: fishwick | last post by:
I haven't really done any css in quite a while, and am banging my head against the wall trying get the rudimentary layout together of a church website home page to display correctly - I don't want...
89
3775
by: Randy Webb | last post by:
There is an updated version of the FAQ at: <URL: http://jibbering.com/faq/newfaq/> The changes/modifications to date are: 2.3 Corrected "span" to "spam". 2.3 Updated with a note about not...
14
2239
by: Phil | last post by:
I have been using this code to display the version number, and this has worked well, but I am now changing from using the ClickOnce publishing to a proper setup project, and this no longer works. ...
0
7106
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6815
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7226
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5407
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4848
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3047
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3042
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1362
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
592
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.