I have a rich text editor with rubber bar (playing with Telerik's demo project), and I would like to disable the user from changing printer settings (and to change the printer in particular). So, for plain print I have this code (please correct me if there's a better way):
private
void
radRichTextEditor1_CommandExecuting(
object
sender, CommandExecutingEventArgs e)
{
if
(e.Command
is
PrintCommand)
{
e.Cancel =
true
;
radRichTextEditor1.Print(
false
);
}
}
But how to prevent the print dialog from print preview dialog? Also, how to prevent print settings dialog as well? Ideally I would like the print button to just print immediately, and print settings button to disappear.