Giter VIP home page Giter VIP logo

Comments (8)

gregnb avatar gregnb commented on July 19, 2024

Can you paste some screenshots? Maybe a link to an example app?

from react-to-print.

rujsga avatar rujsga commented on July 19, 2024

This is react png works fine but in electron content is not displaying.
react

I am attaching the electron screenshot.
electron

from react-to-print.

gregnb avatar gregnb commented on July 19, 2024

Try the new beta version which is going to rely on an iframe to solve the cross origin issues some people are experiencing.

npm install [email protected]

and let me know the feedback if this solves issues

from react-to-print.

gregnb avatar gregnb commented on July 19, 2024

@rujsga Can you update me if that worked?

from react-to-print.

konstantinkreft avatar konstantinkreft commented on July 19, 2024

@rujsga Try to use chrome's window.open() implementation for electron. Worked fine for me with electron and nativeWindowOpen: true.

With the default electron window.open() implementation you are not able to update the document of the created window. But since the window.print() API is available you are able to see the print dialog without any content.

Here you can find out more about chrome's window.open() implementation: https://github.com/electron/electron/blob/master/docs/api/window-open.md#using-chromes-windowopen-implementation

As @gregnb mentioned you should also be able to use new iframe beta version. Tested with electron and worked for me.

from react-to-print.

gregnb avatar gregnb commented on July 19, 2024

Great news this is the positive feedback I was hoping for so if there is continued feedback I will merge this into master

from react-to-print.

gregnb avatar gregnb commented on July 19, 2024

I believe the issue has been solved and you can upgrade

npm install [email protected] --save

from react-to-print.

rujsga avatar rujsga commented on July 19, 2024

Hey, Sorry for not replying earlier. My Issue has been solved by
npm install [email protected] --save.

Thank you for solving my issue.
@gregnb

from react-to-print.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.