Open AviAkGlobal opened 6 years ago
I've tried this too. If I recall the biggest problem is spanning pages. It was a long time ago though, maybe things are easier now. You can move the grid to specific locations with grid.scrollTo(x, y)
and you can give the grid a height and width that it should respect. Then you just need to set the background colors of the various scroll bar elements to transparent
. That should allow you to see what's under them.
Be careful about DPI when you're printing. You may need to allow for a very high DPI ratio https://tonygermaneri.github.io/canvas-datagrid/docs/#canvasDatagrid.args.maxPixelRatio for printing on some printers. To do that it may require some hacking or changes to the lib, I'm not sure.
Feature request: print view of canvas, which might contain, for example:
Currently, I'm doing something like this - basically preparing the canvas as an image, rendering it in a new page and executing print():
This approach has a lot of issues to deal with.