- This topic has 6 replies, 3 voices, and was last updated 9 years ago by
kurtdickson.
-
AuthorPosts
-
hi 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?!
January 11, 2016 at 6:04 pm #463767PS. the images is displayed correctly in my iphone. the problem is with the printing.
January 12, 2016 at 10:52 pm #464148
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.
February 3, 2016 at 3:13 pm #470095I 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.February 4, 2016 at 9:26 pm #470256
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.
February 14, 2016 at 2:23 pm #470926Still have not found an answer. Does anyone have any suggestions?
July 11, 2016 at 5:54 am #489892
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