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

Support - Any way to get printer location? #73

Open
Jaryt opened this issue Nov 4, 2024 · 1 comment
Open

Support - Any way to get printer location? #73

Jaryt opened this issue Nov 4, 2024 · 1 comment

Comments

@Jaryt
Copy link

Jaryt commented Nov 4, 2024

Hi,

This tool has been a life saver! Still on evaluation, but so far I've been able to overcome our issue of being limited by the browsers access to printing.

Anyways, simple question - is there any way to access the "Location" of the printer? I don't know if this is something specific to windows - but it'd be super cool to be able to support this in our app.

Not a crucial thing by any means, just didn't see it in the printer info (basic and extended)

Thanks :)

@neodynamic
Copy link
Owner

The Location field from Win32_Printer class can be obtained when specifying the "Extended" param of getPrintersInfo func.

JSPM.JSPrintManager.getPrintersInfo(JSPM.PrintersInfoLevel.Extended, "").then(
  (value) => {
    console.log('Success');
    console.log(value);
  },
  (reason) => {
    console.log('Error');
    console.error(reason);
  },
);

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

2 participants