Question regarding the Ionic Natvie Printer

Hi all,

I’m utilising the ionic native printer.

I’ve got a modal with some styled content (external SCSS file) and 2 images in here.

When i use the printer plugin like:

LocalPrinter.print(document.getElementById("print-modal").innerHTML, LocalPrintOptions);

I obviously lose the styling and also the images don’t come through to the Print Preview popup on the native dialog.

My question is - How can i include the CSS and images so they also appear?

Thanks,
Alan

I’d suggest looking at the original plugin doc to get a better sense of how to do this.

Yeah I have - I’ve noticed it works fine with normal img tags but not IonImg tags. I’ll get another look now.

Hi @alanmontgomery19, did you ever figure out how to pass the styles along with the html into the printer plugin? I am encountering a similar problem as you and I could not find any answers online, also could not figure out how the original plugin works. Any help is appreciated, thanks!