Code Monkey home page Code Monkey logo

Comments (4)

joseluisq avatar joseluisq commented on May 29, 2024

Have you take a look at the sample dir on this repo?

Maybe you want something like this:

printd/sample/index.ts

Lines 32 to 44 in 5bb2403

function printElement () {
d.print(
content,
[ "https://fonts.googleapis.com/css?family=Roboto", "./base.css", cssText ],
[ "(()=> console.log('Hello world from IFrame!'))()" ],
({ launchPrint }) => {
console.log("Element printing: Content loaded!")
// fire printing!
launchPrint()
}
)
}

If you realize, I'm using an array of different kind of styles (line 35) which includes a file ./base.css.

from printd.

nicolasturen avatar nicolasturen commented on May 29, 2024

The problem is that the css file i'm trying to load is being rejected. I got this message at the console:

Refused to apply style from '........../reports/print.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

I'm using Angular in my project. Haven't fixed the problem yet. Any ideas?

from printd.

joseluisq avatar joseluisq commented on May 29, 2024

It's would be great if you can share an example to reproduce this.

from printd.

joseluisq avatar joseluisq commented on May 29, 2024

I will close this issue due to inactivity. Feel free to open it again if it's needed.

from printd.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.