4

I'm using DataTables with FixedColumns and TableTools extras among others.

When I click Print button for seeing the print preview, the fixed columns are not shown, but PDF and Excel functions prints all the columns.

Here you can see a live example: http://live.datatables.net/epuxem/9 (Print button is the one labeled as "Imprimir" in the live example)

How can I make to see the whole table in the print view?

David
  • 4,336
  • 2
  • 23
  • 31
  • i also facing same issue..do u find any solution..if any solution,pls share... – vmb Jun 05 '13 at 05:20
  • no solution or answer to it. Temporary I built my own personaliced method to show the "print view" but wasn't completely satisfactory. – David Jun 19 '13 at 10:35

1 Answers1

0

You could add a separate style sheet in your header that is used specifically for the print view. In this style sheet you can add styles to your data tables to show the fixed lines for your columns, as well as, any other print view related styles you are looking to include.

Add to your header:

<link rel="stylesheet" type="text/css"href="/projName/css/print.css" media="print">

print.css example to add lines to your data table:

#tableId .tdClassNameForLeftBorder {
   border-left: 1px solid #D3D3D3;
}
quiksillvr
  • 11
  • 3