Try this. Put the following code in the ThisWorkbook code module.
Option Explicit
Private Sub Workbook_BeforePrint(Cancel As Boolean)
Dim LastRow As Long
Dim i As Long
Application.ScreenUpdating = False
Application.EnableEvents = False
Cancel = True
LastRow = Range("A65536").End(xlUp).Row
ActiveSheet.PageSetup.PrintArea = "A1:J" & LastRow
For i = 1 To LastRow
If Range("A" & i).Value = "" Then
Range("A" & i).EntireRow.Hidden = True
End If
Next i
ActiveSheet.PrintOut
ActiveSheet.Cells.EntireRow.Hidden = False
Application.ScreenUpdating = True
Application.EnableEvents = True
End Sub