1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Dynamically set the printed page size using '@page'

Discussão em 'Angular' iniciado por Charmi, Setembro 26, 2024.

  1. Charmi

    Charmi Guest

    I want to print labels of 2 sizes - 3X2inches and 3x3inches.

    Bydefault I have set the label print page size as 3x2inches in styles.scss (Global file).

    @page {
    size: 3in 2in;
    }


    I now want to select the 3x3in label. After selecting the dropdown option and clicking the 'Print' button, how can I dynamically change the printed page size in typescript or CSS using class?

    // Want to set new page size dynamically to following
    @page {
    size: 3in 3in;
    }

    Continue reading...

Compartilhe esta Página