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

Silent print from an UWP Application #52

Closed
AwsomeCode opened this issue May 26, 2020 · 8 comments
Closed

Silent print from an UWP Application #52

AwsomeCode opened this issue May 26, 2020 · 8 comments

Comments

@AwsomeCode
Copy link

AwsomeCode commented May 26, 2020

I am trying to make a Print application on UWP, but the samples show
await Windows.Graphics.Printing.PrintManager.ShowPrintUIAsync();
This brings the UWP Print Dialog.

I need to print directly without this dialog.
I need something like
await Windows.Graphics.Printing.PrintManager.PrintAsync();

@Felix-Dev
Copy link

Also see issue https://github.com/microsoft/microsoft-ui-xaml/issues/2126 which should probably be merged into this issue here.

@stevewri
Copy link
Contributor

The linked thread notes that silent printing works when a WinUI app is built with Win32 appmodel, but not with UWP app model. There's also some discussion there around scenarios where the user shouldn't be surprised by an unexpected (and silent) print.

Is it reasonable to say that silent printing should go through a broker with user consent policy when the app is running as AppContainer (independent of UWP/Win32 app model?)

@jonwis
Copy link
Member

jonwis commented May 31, 2020

Seems pretty OK if we do a one-time prompt like we do with other resources. The user can deny access from Settings if necessary, or the administrator can override and never require prompting.

@ptorr-msft
Copy link
Contributor

@AwsomeCode Do you need other features as well? In the past when we've looked at this, it's not just the ability to print silently, but developers often need fine-grained control over the settings a user could set in the dialog (or any advanced dialogs) like which printer, which paper tray, which options, etc. Does the current PrintTaskOptions class have enough control for you?

@AwsomeCode
Copy link
Author

@ptorr-msft

developers often need fine-grained control over the settings a user could set in the dialog (or any advanced dialogs) like which printer, which paper tray, which options, etc.

Yes we need to provide some Dialog page where user can select printer and page size. And we also need to support all kind Thermal/Raw printer for POS application.

Does the current PrintTaskOptions class have enough control for you

I am not sure about this.

@ghost
Copy link

ghost commented Jul 18, 2020

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 10 days. It will be closed if no further activity occurs within 10 days of this comment.

@AwsomeCode
Copy link
Author

@stevewri @ptorr-msft My primary requirement for the API is to support Thermal Printers for POS Application.
Where we don't required any prompt for printing every invoices.
We should set the printer setting at some place for one time.
And then afterwords every print command silently fetches those print setting and print the invoice.

@jonwis
Copy link
Member

jonwis commented Jul 21, 2020

Let's continue the party on #124

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

No branches or pull requests

7 participants