Its not clear from the question whether you need help with retrieving the print jobs or filtering the results for the second listview. If its the later then you could filter results like this
Main Topics
Browse All TopicsI asked this question on EE not long ago here
http://www.experts-exchang
However I am struggling to see how to use the data tables adequately and efficiently so as to link wmi querries together ie
1. application loads and enumerates printers which is set on form 2 as to whether its the local machine or a print server ( remote machine )
2. User selects / clicks on the printer for which they want to manage and it will enumerate all print jobs for the selected printer into a 2nd list view
Both list views will have multiple columns so as to show information about the printers in the printers listview and about print jobs in the print jobs list view
The last question got as far as making the data tables but I do not understand how at the end you would get all the information out of the data tables into the listview and also how to link the 2nd list view into the first one so that when a printer is selected it will populate the 2nd list view with relevant info.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Check this topic about creating data table, it may help you:
http://www.startvbdotnet.c
By the way your question is not clear and that is why there is no reply.
Good Luck
I've never made a fully fledged application before , I have mucked about with WMI but have no clue or idea the best method / approach for it hence why my question is confusing / not clear.
If we could start from the begining and get the printers enumerated into the first list view with all the relevant columns as per the first question ie
Printer Name | Port | Printer Status | Job Size | Page X of Y etc
In simple terms
Application has the following
Forms * 2
Listviews * 2
Other controls as required ie buttons etc ( controls can be if need be swapped ie listview for grid control maybe ? )
1. Launch application and it prompts you with form 2 which prompts for relevant information ie
server name :
Login Username
Login Password
If servername is a local one ie a dot ( . ) , 127.0.0.1 or localhost then it greys out username and password fields and when you click the ok button it uses the relevant wmi code to either connect to the local machine or a remote machine ( remote machine being a print server )
2. First form loads connecting to the relevant machine with or without logon credentials ( relevant to the connection type ) and the first list view enumerates the relevant printers on the machine specified on form 2 as per step 1 into the first list view ( for the printers ) and each column is populated at the same time ie printer name, port, printer status, job size, etc etc ( similiar to the windows printer dialog window )
OPTIONAL
3. Link List View 2 ( the print jobs list view ) to the relevantly selected printer ( which code cruiser already gave me a snippet of code for so if the above works using data tables or whatever method required then I should be able to hopefully copy and paste the code and move it around and the likes
*NOTE*
I have no idea how to link the wmi querries etc because different win32 wmi classes have different properties and when looking at it , it seems that you have to some how link a few printer classes together unless I am missing the point.
The first question if you click on the link provided in the question shows that the print jobs have been retrieved but have been stored in the data table , I do not know how to access the relevant information to populate the first listview using that and if need be can ask another question to ascertain how to populate the second list view based on the selection made on the first one.
Any help at all ?
If no one answers can I either have a refund of points and close question or at least email someone like idle_mind or someone who can help.
code cruiser from the first question was very helpful.
Any chance you can take the code from the first question and combine it with above code so it outputs the relevant items into the relevant columns for the printers listview and will accept that as a solution for this question and will re ask another question for the 2nd listview part.
Thanks again code cruiser!!
http:#25281179
comment id 25281179
was just stating that he had a full time job and I would have to resolve the issue myself which does not really help and I have been replying hence my above posts so how is that not responding ?
As for deletion no refund I did not get much from this question so feel that it was a waste of points if I am not getting the points back - if you need to assign the points then assign them to code cruiser as he helped as much as possible taking into consideration he is obviously busy with work etc
I do not understand vb dot net enough yet to establish what I need to use to accomplish what I am trying to do if code cruiser or someone could give me a list of things I would need to look into then I could research ie google those things so far data tables is the only thing I am aware of but not sure that would be all the things / items I would need to look into.
ive got a 2003 vb.net book but that mostly goes through arrays, loops, controls but nothing to do with data tables etc so I have done the very basic stuff but need suggestions with regards to which books would help me more so with the more advanced topics ie data tables, using wmi effectively etc etc etc
any suggestions ?
Business Accounts
Answer for Membership
by: AfricansPosted on 2009-08-27 at 06:29:53ID: 25197857
Check this topic, it may help you articles/d isplay/697 .html
http://www.devasp.net/net/
Good Luck