facebook

printing image

  1. MyEclipse IDE
  2.  > 
  3. Mobile Tooling
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #463766 Reply

    MalakSadik
    Participant

    hi again
    I have this printing action in my .js file

    var 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.png

    How can I print this image?!

    #463767 Reply

    MalakSadik
    Participant

    PS. the images is displayed correctly in my iphone. the problem is with the printing.

    #464148 Reply

    support-tony
    Keymaster

    Malak,

    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.

    #470095 Reply

    MalakSadik
    Participant

    I 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.

    #470256 Reply

    support-tony
    Keymaster

    Malak,

    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.

    #470926 Reply

    MalakSadik
    Participant

    Still have not found an answer. Does anyone have any suggestions?

    #489892 Reply

    kurtdickson
    Participant

    I suggest that you check some help from here http://www.digitekprinting.com/, I got almost the same issue but they have the fixes.

    Regards.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: printing image

You must be logged in to post in the forum log in