We have a XAML usercontrol set up as a pdfviewer where we have RadPdfViewer along with a toolbar with buttons for tasks like printing. The command on the print button is bound to the PrintPdfDocumentCommand in the PdfViewer control.
Sometimes our clients report that they can't print and the log indicates that the infamious SecurityException [FileDialog_UserInitiated]. The stack trace is:
I guess this is due to slow client computers which fail to open the dialog during the one second allowed timeframe between mouse click and dialog opening. Are there any way to work around this?
Sometimes our clients report that they can't print and the log indicates that the infamious SecurityException [FileDialog_UserInitiated]. The stack trace is:
at System.Windows.Printing.PrintDocument.PrintInternal(String documentName, PrinterFallbackSettings printerFallbackSettings, Boolean useDefaultPrinter) at System.Windows.Printing.PrintDocument.Print(String documentName, PrinterFallbackSettings printerFallbackSettings, Boolean useDefaultPrinter) at Telerik.Windows.Documents.Fixed.Print.PrintManager.Print(PrintSettings settings) at Telerik.Windows.Controls.FixedDocumentViewerBase.Print(PrintSettings settings) at Telerik.Windows.Controls.FixedDocumentViewerBase.Print() at Telerik.Windows.Documents.Commands.PrintPdfDocumentCommand.Execute(Object parameter) at Telerik.Windows.Controls.RadButton.ExecuteCommand() at Telerik.Windows.Controls.RadButton.OnClick() at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e) at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e) at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)
I guess this is due to slow client computers which fail to open the dialog during the one second allowed timeframe between mouse click and dialog opening. Are there any way to work around this?