- This topic has 6 replies, 3 voices, and was last updated 8 years, 5 months ago by kurtdickson.
-
AuthorPosts
-
MalakSadikParticipanthi again
I have this printing action in my .js filevar printContent = document.getElementById("m1-Score-image1").src; cordova.plugins.printer.print(printContent, "Document.html", function () {phoneui.alert("printing finished or canceled")});
and in _custom.js I changed the img src according to some score
if (score<=4){ imageSrc = "images/PE1-4.png";} else {//score>4 imageSrc = "images/PE5.png";} $('#m1-Score-image1').attr('src',imageSrc);
I would like to print the image inScore page but i get this instead:
file:///var/mobile/Containers/Bundle/Application/B9……/myapp.app/www/images/PE5.pngHow can I print this image?!
MalakSadikParticipantPS. the images is displayed correctly in my iphone. the problem is with the printing.
support-tonyKeymasterMalak,
This is a development question but it may be that the print plugin that you’re using doesn’t support printing of images, or you need to check whether there is a print device attached.
For further assistance, I suggest posting to an external development forum, such as StackOverflow.com.
MalakSadikParticipantI can see the correct image in the app but when I click print , the print preview shows no image. may be the problem is that the new image source cannot be reached when printing.
can you suggest a print plugin that support images.
support-tonyKeymasterMalak,
As before, I suggest you post on stack overflow or some other appropriate development forum. You should include, in that other forum, your code (or an appropriate snippet) and the plug-in being used. But first, check that the plug-in you’re using supports printing of images.
I’m afraid that we can’t provide general development support.
MalakSadikParticipantStill have not found an answer. Does anyone have any suggestions?
kurtdicksonParticipantI suggest that you check some help from here http://www.digitekprinting.com/, I got almost the same issue but they have the fixes.
Regards.
-
AuthorPosts