Calendar 'Print' not showing grid lines and Text light gray

When clicking the ‘Print’ button the grid lines between each day don’t show and the test shows as light gray for a calendar event when I print to a printer or print as PDF. Is this a fix that can be done in the HTML/CSS code or is this due to the print settings itself and nothing can be done about it?

I am providing the HTML/CSS code and a couple of screenshots: one of what the page looks like and what it looks like when printing to PDF.

What the page in the app looks like currently:

After clicking Print button and what it looks like printing to PDF. No grid lines and text is gray and a little hard to read

HTML

  <div class="card">
    <div class="card-header d-flex justify-content-between align-items-center">
        <div class="d-flex align-items-center">
        <h2 class="mr-3">Calendar</h2>
        <lf-timezone-selector
            *ngIf="jwt"
            (changed)="timezoneChanged($event);" [(ngModel)]="timezone" ngDefaultControl> 
      </lf-timezone-selector>
    </div>

    <div class="d-flex">
        <button class="btn btn-outline-secondary" (click)="print()">
            Print
        </button>
        <lf-google-signin *ngIf="jwt"
                          [selectedCalendarName]="calendarName"
                          (sendSignOut)="handleSignOut()"
                          (sendSignIn)="handleSignIn()"
                          (showCalendarSelectorDialog)="showCalendarSelectorDialog()"
        ></lf-google-signin>
    </div>
</div>
<div class="card-body text-center">
    <full-calendar class="lf-full-calendar"
                   id="calendar-container"
                   #calendarComponent
                   [options]="calendarOptions"></full-calendar>
   </div>
 </div> 
  <mat-tab-group>
        <mat-tab label="Current Invoices">
            <ng-template matTabContent>
                <lf-unit-invoices-table #unitOutstandingInvoicesTable
                                        
          (emitReloadUnitBalance)="this.emitReloadUnitBalance.emit($event);"
                                        [unitId]="this.unitId"
                                        [context]="'unpaid'"
                ></lf-unit-invoices-table>
            </ng-template>
        </mat-tab>
        <mat-tab label="Recurring Templates">
            <lf-unit-recurring-charges-table [unitId]="this.unitId"></lf-unit-recurring-charges-table>
        </mat-tab>
        <mat-tab label="Account History">
            <ng-template matTabContent>
                <div *ngIf="hasUnitReadAccess" class="px-4 pt-2">
                    <mat-slide-toggle (change)="onCurrentOwnerToggle($event)">
                        <span class="text-secondary">Current Owner</span>
                        <i matTooltip="Toggle viewing account history for current owner, or for all 
                 owners." class="fa fa-info-circle p-1 text-secondary"></i>
                    </mat-slide-toggle>
                </div>
                <lf-unit-account-history-table
                    #unitAccountHistory
                    [unitId]="this.unitId"></lf-unit-account-history-table>
            </ng-template>
        </mat-tab>
        <mat-tab label="All Invoices">
            <ng-template matTabContent>
                <lf-unit-invoices-table #unitAllInvoicesTable 
            (emitReloadUnitBalance)="this.emitReloadUnitBalance.emit($event);"
                                        [unitId]="this.unitId"
                                        [context]="'all'"
                ></lf-unit-invoices-table>
            </ng-template>
        </mat-tab>
        <mat-tab label="All Payments">
            <ng-template matTabContent>
                <lf-unit-payments-table [unitId]="this.unitId"></lf-unit-payments-table>
            </ng-template>
        </mat-tab>
        <mat-tab *ngIf="jwt.superUser">
            <ng-template mat-tab-label>
                Credits
                <app-super-star></app-super-star>
            </ng-template>
            <ng-template matTabContent>
                <lf-unit-credits-table 
            (emitReloadUnitBalance)="this.emitReloadUnitBalance.emit($event);"
                                       [unitId]="this.unitId"
                ></lf-unit-credits-table>
            </ng-template>
           </mat-tab>
      </mat-tab-group>
   </div>

CSS

   :host {
         .lf-full-calendar {
         max-width: 1100px;
         display: block;
         margin-left: auto;
         margin-right: auto;
      }

 .google-calendar-title {
    font-size: 12px;
  }

.google-calendar-list {
    display: flex;
}

.google-calendar-container {
    display: flex;
    justify-content: space-between;
    max-width: 1100px;

    select {
        background-color: #FFFFFF;
        font-size: 12px;
        min-width: 200px;
    }

    .spinner {
        height: 30px;
        margin-right: 5px;
       }
      }
    }

   ::ng-deep {
     a.fc-daygrid-event {
    color: #ffffff;
  }

.fc-daygrid-dot-event:hover {
    color: black;
   }

}

Well there must be more CSS than that, because nothing in your CSS is drawing a gray line to begin with.

I don’t suppose this page is somewhere we can reach it?

1 Like

The text is light gray on the print. The lines don’t show at all on the print

That’s his point.

The CSS you have provided has NO correlation to the CSS which is need to generate the calendar. So you haven’t provided enough information for anyone to help you. You’ll need to provide the relevant css which is used for the calendar.

1 Like

This is the css for the calendar.

This is the css for the calendar. You can see in the css one of the properties is lf-full-calendar.

Point to me anywhere in the code you have posted where the word “gray” appears; or any hex number that equals to a gray color.

I never said anywhere in the code where the word ‘gray’ appears. What I’m saying is when I print I don’t want the words to show ‘gray’ as shown in the screenshot that say ‘12p Test’. How do I fix that so it will show as black or another readable color on the print?

And we are telling you we cannot tell you how to replicate the first page without seeing how the first screenshot is ACTUALLY made. Your first screenshot has grey lines. You have not shown us how the grey lines get made. Ergo, we cannot help you duplicate it.

You’re asking us to photocopy something without the original.

The first screen shot is made in the html that I provided.

I took what you provided, stuck it into Codepen. This is what i get.

Try again.

Of course that is what you are going to get doofus. I didn’t provide any back end code and figure someone on here could assist with the html, css, and screen shots to help figure out why when I print it looks like the print screen shot. You people are no help at all.

“Doofus”…

I’ve drug this horse to the water, stuck its head under the water, and it’s dying of thirst.

“I didn’t provide any back end code”

Nope, it’s not. THE BACK END IS LOADING MORE CSS. GO FIND IT.

If you can’t help on something where I provide the HTML, CSS and screenshots of what it looks like on the web page and what it looks like when you are printing and base that off of the help I’m asking for and need MORE then you are a DOOFUS

You have walked into a mechanic’s shop, told the mechanic the car has a broken headlight, and when the mechanic asks you where the car is you hand them the dashboard switch for the headlight.

That’s the level of “You have not given us the information to help you” you’re at. Stop insulting those taking their time out of their day to try and guide you, and actually try to provide what is necessary for someone to fix the problem.

It won’t be me though. I’m done.

I’m sorry but I think this thread has run it’s course. As it’s been pointed out, we don’t have enough information to be able to help you.

All I can tell you based on the less than limited css you’ve provided is need to find the css which is being used for the calendar - you haven’t provided it. Find the css which probably has media only screen on it because the screenshots provided show the following differences between the screen version and the print:

  • Month and Year styling
  • Grid lines
  • stylized “buttongs” for next/prev/month/week/day
  • Stylized link css. No underlines on links, resized and a specific color
  • Stylized event - background/foreground colors, width
  • “current” date background color

None of these things are in the css you provided…none of it. Quick guess is these are all in an external css file you don’t deal with on a regular basis.

And though multiple people have pointed out that we more information was needed, or even a link to the page, you keep insisting this is the full css, and when someone proves the provided information is incomplete, it resulted to name calling and bickering back and forth like children. Not a productive use of anyone’s time.

Good luck to you.

THREAD CLOSED

3 Likes