can I wait for DocDocumentViewer to load document from file? I'm working on these three steps to programmatically print with/withnout user interaction:
1) Programmatically load document:
- Code: Select all
this.docDocumentViewer.LoadFromFile("tmp.docx");
2) Wait until document is loaded, or fire event when it's loaded.
3) Programmatically print document:
- Code: Select all
this.customizeToolBar.DialogPrint();
this.customizeToolBar.SilentPrint();
Also I'd like to hide form and show only print dialog.
Thanks for any hints.