How can we print datatable selected records, if not total table?

I want to print datatable selected/all records. For this first i need to convert datatable into a static html page in same format.

Here my concern instead of opening direct print page need open in new window with static html page.

If we use “webix.print” not coming in a properway first 5 columns in one page and next columns in next page.

How can we achieve this?

please help any one

can any one on respond this ?
else i will go with any other option

This I achieved using another library