Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set-Printer-Attribute #92

Open
KawaRahmani opened this issue Apr 27, 2021 · 0 comments
Open

Set-Printer-Attribute #92

KawaRahmani opened this issue Apr 27, 2021 · 0 comments

Comments

@KawaRahmani
Copy link

It is really not clear how to use "Set-Printer-Attribute"

const printable = {
"operation-attributes-tag": {
"requesting-user-name": "John Doe",
"document-format": "text/plain",
"attributes-charset": "utf-8",
},
"printer-attributes-tag": {
//"printer-current-time": new Date(),
"printer-current-time": new Date(),
}
};

        this.systemPrinter.execute("Set-Printer-Attributes", printable, function (err: any, res: any) {
            //console.log("Error: ", err);
            // console.log("Printer response!", res);
        });

I am trying to re-assign the printer time and date. This query executes successfully, but it doesn't change the "printer-current-time"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant