Click here to Skip to main content
15,886,689 members
Articles / Programming Languages / Visual Basic

Monitoring a Printer Queue from VB.NET

Rate me:
Please Sign up or sign in to vote.
4.61/5 (67 votes)
2 May 2014CPOL4 min read 1.6M   18.1K   188  
How to monitor a printer queue from Visual Basic .NET
Imports System.Reflection
Imports System.Runtime.InteropServices

' General Information about an assembly is controlled through the following 
' set of attributes. Change these attribute values to modify the information
' associated with an assembly.

' Review the values of the assembly attributes

<Assembly: AssemblyTitle("Printer Monitor Component")> 
<Assembly: AssemblyDescription("A component to monitor a printer queue")> 
<Assembly: AssemblyCompany("Merrion Computing Ltd")> 
<Assembly: AssemblyProduct("MCL PrintQueueWatch")> 
<Assembly: AssemblyCopyright("(c) 2002 - 2012 Merrion Computing Ltd")> 
<Assembly: AssemblyTrademark("")> 
<Assembly: CLSCompliant(True)> 

' Version information for an assembly consists of the following four values:
'
'      Major Version
'      Minor Version 
'      Build Number
'      Revision
'
' You can specify all the values or you can default the Build and Revision Numbers 
' by using the '*' as shown below:

<Assembly: AssemblyVersion("2.0.8.*")> 

'\\ --[Assembly security]----------------------------------------------------
'\\ Permission requests
'\\   UIPermissions
'\\      All windows allowed (This means that this control could be spoofed, but this is not an issue)
'\\
'\\ Assembly cannot be used by COM clients
<Assembly: ComVisible(False)> 




By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Ireland Ireland
C# / SQL Server developer
Microsoft MVP (Azure) 2017
Microsoft MVP (Visual Basic) 2006, 2007

Comments and Discussions