Page 1 of 1

Print problem in rain 4

Posted: 03 Mar 2023, 11:52
by kubek1976
Hi.
There is a problem in one of the files that affects printing across the layout. The ctrl+p shortcut prints the white page

Problem is in _invoice.scss :

Code: Select all

@media print {
    body * {
        visibility: hidden;
    }
Best regards.
Rafal

Re: Print problem in rain 4

Posted: 07 Mar 2023, 15:04
by olgubasak
Hi,

Thank you for your notification. I will review it and get back to you.

Re: Print problem in rain 4

Posted: 09 Mar 2023, 02:42
by ybendek
Hello

I have the same problem, even the p:printer component is failing and displaying an empty page

Re: Print problem in rain 4

Posted: 16 Mar 2023, 14:24
by olgubasak
Hi again,

Depending on what you want to see on the pages, you can make changes to invoice.scss. As an example, you can examine the code I shared below.

invoice.scss:

Code: Select all

@media print {
     .invoice-body * {
        visibility: hidden;
    }
 }
invoice.xhtml

Code: Select all

<ui:define name="head">
        
        <script>
            $(function(){
                $(document.body).addClass('invoice-body');
                        
                
            });
        </script>
    </ui:define>

Re: Print problem in rain 4

Posted: 29 Jan 2024, 08:28
by DelmerMaggio
I tried and it works. tunnel rushThanks.

Re: Print problem in rain 4

Posted: 12 Mar 2024, 12:45
by ulnaoperating
Like you, I'm seeing an empty page when I try to print basketball stars using the p:printer component.

Re: Print problem in rain 4

Posted: 14 Mar 2024, 03:32
by bubblyeducate
ybendek wrote:
09 Mar 2023, 02:42
Hello

I have the same problem, even the p:printer component is failing and displaying an empty page
I also get a blank page displayed, how do I fix it?

Re: Print problem in rain 4

Posted: 21 Apr 2024, 23:18
by uw4w3
Using a GST calculator can enhance understanding of GST calculations and how gst calculator india GST impacts transactions in India. It serves as an educational tool to improve financial awareness and knowledge of tax implications.