I am using Xamarin.Mac to develop a MacOS application with C#. I want to print(in the printer) a table, and I am using the print() function to do this. However, when I use this function it only prints what it is showing on the screen.
Apparently, it happens because the print function only prints the section of the NSView that appears on the screen.
I have found some solutions to this issue using Swift language, but I am not sure how to convert the code to C#.
In my code, SubviewCompanyController is my class which inherits from AppKit.NSViewController and it also has my table.
private NSViewController SubviewController = null;
.
.
.
var controllerCompany = SubviewController as SubviewCompanyController;
controllerCompany.View.Print(this);