-
-
Notifications
You must be signed in to change notification settings - Fork 220
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
can't print image #15
Comments
The same problem |
What path is provided for the image? is it absolute? Or relative? My guess is that it is a relative path and I need to fix the package to handle relative paths for images. That was a recent bug in the stylesheets that I should address here regardless |
absolute path @gregnb |
same problem |
Any update? I'm having the same issue when trying to print an image using Edge. Using Chrome, Firefox and IE it works fine. Pressing CTRL+P works fine in Edge. |
I just published 1.0.18 and I've added a debug mode. To turn it on add the debug={true} prop like so:
What this will do is when you click to print it'll open the print window but it will NOT print and it will NOT close. What I would like is if anyone experiencing issues could open up console and then look for any issues? Also, if they could paste the contents HTML elements like so below: |
I have an |
my observations are, on trigger, it does not fetch the image first time. Hope this helps @gregnb |
I would encourage anyone having issues to try the new beta version which is going to rely on an iframe to solve the cross origin issues some people are experiencing.
and let me know the feedback if this solves issues |
i have used https://www.npmjs.com/package/rc-print |
Any update here? I'm having the same issue. |
Hello, It's still not working. I have that issue. contains the img with src or the div with a background but it's not on the print. What is more it does not trigger print-system dialog while contains an image. |
hello @saraems can you please possibly make a codesandbox showing the problem? |
Hi there. I'm using Electron and React for my project and while i can show the image in the app using import or require, the second i try to print it it vanishes. It's using a relative path for the image src. Calling the absolute path (ex: http://localhost:3000/static/media/logo1.0550988b.png) will work in development and show the image in both the app and the printed file, But this can not be done in production (the webpage files are not available). Any ideas? |
@TheRogue76 Try background image as base64. Because the app doesn't know whether the image path will be absolute or relative path. for the first time loading it get confused. after it working fine. I tried it's working fine. |
The text was updated successfully, but these errors were encountered: