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

Get different results from window.print() and ctrl+p #2

Open
bofa opened this issue Jul 21, 2017 · 10 comments
Open

Get different results from window.print() and ctrl+p #2

bofa opened this issue Jul 21, 2017 · 10 comments

Comments

@bofa
Copy link

bofa commented Jul 21, 2017

I am getting different results from ctrl + p and window.print() in chrome 59

@a-x-
Copy link
Owner

a-x- commented Jul 21, 2017

Hey, @bofa

Show me more info please (a screenshot and code sample will be cool)

@Bamii
Copy link

Bamii commented Sep 26, 2017

@bofa I had the same problem, you just have to wrap the things you're not printing with <NoPrint> </NoPrint>

@a-x-
Copy link
Owner

a-x- commented Sep 26, 2017

Yep,
it was designed as so to cover multiple use-cases

@a-x-
Copy link
Owner

a-x- commented Sep 26, 2017

I'll add example with <NoPring> in top level

@a-x-
Copy link
Owner

a-x- commented Sep 26, 2017

019c543

@Bamii
Copy link

Bamii commented Sep 28, 2017

@bofa Has this solved your problem?

@adrifmonte
Copy link

adrifmonte commented Oct 27, 2017

I could confirm the issue (tested on Chrome), and that the workaround works.

When using Ctrl + P, with <Print exclusive>, it works like a charm, but it doesn't work with window.print().

Refactoring the code to use Print and NoPrint as @Bamii commented, instead of the exclusive usage, it works fine both ways.

@BTARPAR
Copy link

BTARPAR commented Apr 16, 2019

I've added on top level still Ctrl+p and window.print have different view

@BTARPAR
Copy link

BTARPAR commented Apr 16, 2019

Work around :
add @media print and give styling to you app using position:relative and bottom property
not a good solution but it serving its purpose for now

@reyapr
Copy link

reyapr commented Aug 17, 2019

this still bug anyway
<PrintProvider> <NoPrint> ...code </NoPrint> <Print> ..code </Print> </PrintProvider>

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

6 participants