- 0
Printing across a network using C#
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Posts
-
By +Spark99 · Posted
It seems like I'm just renting games now. I can't resell them and they can be removed from the steam or Epic store or the servers shut down at any time. -
By Tarrant64 · Posted
Sure - let's expand on that a bit then to try and be of more help. It's not a one-time use code that can be gamed - each time the proof is required a new transaction takes place to go through the "proof" process. It's a unique step each time. Not a...reusable QR code or pass so to speak. Each time proof is required, a new cryptographic transaction is required. The tricky part here, is trusted issuers. That is still needed. Since this is open source - it doe snot mean that Google has to be the issuer. Google has just provided the tooling to do this, but they don't store the data - to be clear. Presumably, again - you would have some type of government or state issued digital ID that supports the zero-knowledge functions. Effectively, the same entities today that have your information and you (assumingly trust) would continue to have it, it would just be able to be leveraged in a more private manner when you go somewhere or interact with anything requireing age verification. To fake this, someone would need to have a legitimate private key tied to an actual real identity. Cryptographic checks using zero-knowledge would fail otherwise - and again - it can't be used over and over again. Can someone screw up and somehow leak that private key? Sure. No different than leaking your password to your private accounts - a password change would be necessary and let's hope that future implementation of ZKP-based identities bake in some kind of 2FA/MFA for better security. There's not much to hack here, as I said - really comes down to the issuer. If you receive this from the government, none of your real data gets sent to say "MyHubOfChoice.com" when doing age verification - the protocol is only designed to say "Yes - I meet the requirement." Reality is, this keeps you more anonymous than you could ever be today with age verification without having to share anything else about you. However, it's worth stating that anonymity isn't the goal with ZKP - it's removing disclosure. True anonymity is more difficult, as how everything works today to an extent you need to prove who you are with a "trusted" source (ie government/state issued ID). And that data, at the end of the day, does sit in a centralized db as designed. Could that change in the future, perhaps. But the goal of this is just to not have to hand over anymore information than you need to. -
By pmrd · Posted
Oh yeah because its SO hard to duplicate some of the server's logic on the client -
By adrynalyne · Posted
Software versions increase while older ones are deprecated. This is nothing new, except now it's not included with Windows. Do you not upgrade your software? The biggest issue for me living with 2.0 was that the new versions never upgraded it, it installed side-by-side. I accidentally launched the shite version more than once on accident. -
By adrynalyne · Posted
They would have to include .NET (not be to be confused with legacy .NET Framework), and they don't. That might be why...dunno. Or maybe because it's open source (guessing)? It's kind of nice to have it separated from the OS.
-
-
Recent Achievements
-
K.I.S.S. earned a badge
One Year In
-
solidox earned a badge
Week One Done
-
solidox earned a badge
Dedicated
-
Devesh Beri earned a badge
Week One Done
-
956400 earned a badge
Week One Done
-
-
Popular Contributors
-
Tell a friend
Question
ramesees
Hi all
I am currently writing a service that will run once per day, retrieve data from a SQL database, and print some reports.
Here is the problem:
I have an xml config file which contains a report code (eg RPT001) and the printer it is to print to. This means that in future if I want to, I can simply change the printer name without too much disruption and the reports will be redirected elsewhere.
However, I am unable to set the printer name so that the report gets printed out. When I use :
// If we have specified a printer name print to this one otherwise the
// default printer will be used
if (_printerName != "")
{
pd.PrinterSettings.PrinterName = String.Format("{0}", _printerName);
}
A call to pd.PrinterSettings.IsValid, always returns false.
I have been looking into the PrintingPermissions topic, however I am unable to find a proper clear sample of how to use it so that I can grant access to my code to be able to print across the network.
The printers are connected to a central print server, however specifying "\\servername\printer" doesnt seem to work either.
To complete the picture, the code which performs the printing is in its own DLL and the service references this DLL.
What changes need to be made and where to get this to work?
Any and all help is very much appreciated :D
Link to comment
https://www.neowin.net/forum/topic/613622-printing-across-a-network-using-c/Share on other sites
16 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now