Functions to retrieve data from DEVMODE in C#

May 12, 2018
2
0
10
0
I wrote a C# class that holds some structures copied from PInvoke site. In this class I have: Printer_Info_2 structure, Job_Info_2 structure, SystemTime, Printer_Defaults and DevMode structures too. So I have the base to work on getting printer info and job info.
All I need is too get PrinterName, DocName, Owner, Total Pages and Copies in any printer spool located in my machine. But don't know how to obtain that information using InteropServices. I know there are a lot of codes in c, vb, C++ working around this, but I only know C#. Can anyone help me? Its not academic task, not for comercial aplication... Its for personal and education porpose.
 
May 12, 2018
2
0
10
0


I'm searching. But all I found till now was in some other languages than C#. I found a good sample that shows how to enumerate print ports on local machine. But that's not the answer I need. But thank you for your answer.
 
Thread starter Similar threads Forum Replies Date
H Apps General Discussion 3
_dawn_chorus_ Apps General Discussion 3
truegenius Apps General Discussion 3
E Apps General Discussion 4
A Apps General Discussion 4
M Apps General Discussion 2
J Apps General Discussion 1
E Apps General Discussion 2
M Apps General Discussion 6
O Apps General Discussion 4
P Apps General Discussion 1
S Apps General Discussion 1
M Apps General Discussion 4
K Apps General Discussion 1
Lumia925 Apps General Discussion 8
T Apps General Discussion 5
T Apps General Discussion 1
Z Apps General Discussion 1
D Apps General Discussion 2
XAKEP Apps General Discussion 7

ASK THE COMMUNITY