Reputation: 1485
I'm trying to print an NSTableView, but most of the table keeps getting cut out. My question is twofold:
How can I get it to resize to fit one page?
How can I get it to print landscape?
If there's a better way to do it, without using the print: function, then I'm happy to receive those suggestions too! (The Table is binded to core data btw)
Thanks!
Upvotes: 0
Views: 760
Reputation: 15927
You probably want to create your own custom view that draws the data in the way you want it, and then use that for printing. A good option for printing tabular data is to construct a table using html and css and print that using a WebView
from the WebKit framework.
Upvotes: 1