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

Print only selected frame #2949

Open
criddell opened this issue Nov 8, 2022 · 3 comments
Open

Print only selected frame #2949

criddell opened this issue Nov 8, 2022 · 3 comments
Assignees
Labels
feature request feature request priority-low We have considered this issue and decided that we will not be able to address it in the near future. tracked We are tracking this work internally.

Comments

@criddell
Copy link

criddell commented Nov 8, 2022

When the document is composed of multiple frames (or iframes) and the user right clicks in a frame and selects print, I would expect to be able to print just the frame for which the context menu is displayed.

The old web browser control had a combo box in the print preview window where you could select:

  • as laid out on screen
  • only the selected frame
  • all frames individually

image

AB#42200698

@monica-ch
Copy link
Contributor

@criddell Context menu for print in iframe prints whole document not just iframe (This is not supported in edge browser so webview doesn't). But window.print() inside JS in iframe prints just iframe. Try printing programmatically and see if it works for your case.

@criddell
Copy link
Author

@monica-ch I was able to bring up the print UI for the iframe by following your suggestion, so thanks for that. I ended up removing Print from the context menu and the ctrl-p / shift-ctrl-p accelerators because they don’t do what our users will expect.

I’ve also started playing with the experimental print API and it is almost exactly what I want except… you can’t print an iframe with it. Extending the new print API to work with an iframe would be very helpful.

@monica-ch monica-ch added the tracked We are tracking this work internally. label Nov 11, 2022
@monica-ch
Copy link
Contributor

@criddell Glad it worked for you. Current Print API prints the whole document per design.

I've added this to our backlog to support printing an iFrame.

@github-actions github-actions bot added the priority-low We have considered this issue and decided that we will not be able to address it in the near future. label Mar 14, 2024
@victorhuangwq victorhuangwq removed the priority-low We have considered this issue and decided that we will not be able to address it in the near future. label Mar 20, 2024
@github-actions github-actions bot added the priority-low We have considered this issue and decided that we will not be able to address it in the near future. label Mar 20, 2024
@victorhuangwq victorhuangwq removed the priority-low We have considered this issue and decided that we will not be able to address it in the near future. label Mar 20, 2024
@github-actions github-actions bot added the priority-low We have considered this issue and decided that we will not be able to address it in the near future. label Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request feature request priority-low We have considered this issue and decided that we will not be able to address it in the near future. tracked We are tracking this work internally.
Projects
None yet
Development

No branches or pull requests

3 participants