Printing from a NRichTextView to OSX in Xamarin


https://www.nevron.com/Forum/Topic12015.aspx
Print Topic | Close Window

By NeilTurp - 7 Years Ago
I have an app with an NRichTextView that loads and displays rtf files fine,  I've added a print button with this code:

txtnotes.Print();

and

txtNotes.Print(new Nevron.Nov.UI.NPrintDialog());

and

Nevron.Nov.UI.NPrintDialog printDialog = new Nevron.Nov.UI.NPrintDialog();
printDialog.EnableCurrentPage = true;
printDialog.NumberOfCopies = 1;
txtNotes.Print(printDialog);
(with and without a printDialog.PrinterName specified)

I've even tried

printDialog.RequestShow();

but whenever I click Print, nothing happens.  I've also checked the NOV Examples App and clicking Print does nothing there too.  Am I missing something or does it not work on OSX or Xamarin?

Neil
By Nevron Support - 7 Years Ago

Hi Neil,
We were able to successfully print both to pdf and physical printer through the standard interface of the view which uses the view.Print() method. Have you tested on a different machine (it may be driver related)?