This question already has answers here:
How do I retrieve a list or number of jobs from a printer queue?
(2 answers)
Closed 9 years ago.
I am trying to write a service that monitors the printers queue in C# that sends the information of a current print job (Document name, pages printed, paper media size) to an another application possibly that will then popup (like the Windows Msg "document has been sent to printer"). I am not sure if there is any examples or if anybody knows what classes are best used, being the printers are on a Windows printer server.
Thanks,
How do I retrieve a list or number of jobs from a printer queue? also doesn't completely match what I am asking, so read before marking as duplicate which it isn't.
Look into the System.Printing.PrintQueue class and the System.Printing.LocalPrintServer class - especially the GetDefaultPrintQueue method on the LocalPrintServer class
Related
This question already has answers here:
How can I create a “Open with” list as in Explore in my own application
(2 answers)
Closed 3 years ago.
I need to list all the PDF readers available in a given PC.
I've found many ways to get the default one, or to get just the adobe acrobat, but I need to be able to list them all like:
Adobe Acrobat
Foxit
...
Q: Can you list which program is associated with .pdf? A: Yes.
Q: Can you loop through all installed programs, and print out those which read .pdfs?
A: Yes ... but you need to make a list of "which programs read .pdfs". Windows doesn't know this a priori.
PS:
You should probably also include Chrome and Firefox (among others) in your list.
This question already has answers here:
UWP How to get StorageDevice freespace and capacity?
(3 answers)
Closed 3 years ago.
I am creating a UWP application. I have a use case where I need to print the amount of free local storage available in GB on the windows device on which the app is running. How can this be done?
For this you can use the DriveInfo class. Following this link will provide you with examples System.IO - DriveInfo. Remember to take into consideration how to print the free storage if the device has more than one internal storage device.
This question already has answers here:
Windows Phone 8 support to capture SMS or a incoming call?
(3 answers)
Closed 8 years ago.
After looking at those links:
control-information-on-call-windows-phone-8
call-history-for-windows-phone-8
it seems that there is no way to do drop a call or to get calls history from an application using Windows Phone.
I would need to get a notification when an incoming call is starting/ending on Windows Phone 8.
Is is possible to do that even if I am not an OEM? If yes, what is the API to use?
For security reasons microsoft do not want to allow the apps to get incomming calls info, call history or message data. so a straight no on that.
No.
Reason: Security and Privacy of customer.
This question already has answers here:
Writing a Virtual Printer in .NET [closed]
(7 answers)
Closed 5 years ago.
I am a fresher in c#. I have developed an application that can convert a postscript file(.ps) to formats like PDF,JPEG, ets,. My intention is to develop a pdf printer. So how do I add this application as a printer in windows xp or above. Or say how do I get the PS file when CTRL+P is pressed on any windows application.
This is not a network printer, its a printer that needs to be assigned to a local print port and not a network port.
You are asking, how to make a virtual printer in C#, a very good question, and an easy one, you can use some thing called:
- Virtual Printer Port Redirection, you can see the following questions and articles, they are very related to yours:
Writing a Virtual Printer in .NET
Configure Virtual Printer Port Redirection
http://msdn.microsoft.com/en-us/library/windows/hardware/br259124
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Retrieve a complete processes list using C#
How can I get a list of applications from the applications in Task Manager in C#?
Also, I'll want see hidden applications. Because, some applications do not appear in processes tab e.g Knignt Online.
What should I do?
Have a look at:
System.Diagnostics.Process.GetProcesses()