Comments (8)
Can you paste some screenshots? Maybe a link to an example app?
from react-to-print.
This is react png works fine but in electron content is not displaying.
I am attaching the electron screenshot.
from react-to-print.
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.
@rujsga Can you update me if that worked?
from react-to-print.
@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.
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.
I believe the issue has been solved and you can upgrade
npm install [email protected] --save
from react-to-print.
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)
- codesandbox examples are not loading HOT 2
- onAfterPrint is called before print iframe appears HOT 1
- On mobile devices are not truncated accordingly ref HOT 1
- Add Border to every Page HOT 4
- Add dynamic colors to print function HOT 1
- How to check that the user click on Save in `onAfterPrint`? HOT 2
- getting Supplied Data is not a valid base64-String jsPDF.convertStringToImageData erorr while directly downloading image HOT 1
- Border top and bottom HOT 1
- Save as PDF hangs in print view HOT 1
- Blank PDF when trying to generate in production. HOT 2
- How should i handle large data to print? HOT 8
- Why does it render different content when in im browsing in mobile HOT 3
- Blank Page while printing after a certain period of time HOT 9
- How to add style using PageStyle prop, without it overriding component’s style HOT 5
- Warning: findDOMNode is deprecated outside StrictMode. HOT 10
- Unhandled error when trying to print not fully loaded canvas elements HOT 3
- HTML doctype declaration is displaying on top of the print dialog window HOT 10
- Print datatables HOT 4
- CSS "break-before" (replacing "page-break-before") not supported HOT 3
- '.brf' file : Change the save directory. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-to-print.