When printing a document through a standard print dialog box, the program crashes without any errors or exceptions. Part of the output code is standard:

PrintDialog printDialog = new PrintDialog(); if (printDialog.ShowDialog() == true) { DocumentPaginator paginator = ((IDocumentPaginatorSource)fdpvDocumentViewer.Document).DocumentPaginator; printDialog.PrintDocument(paginator, "Акт"); } 

I assumed that there was an error in the installed drivers on the printer. Ran printing using multiple printers. I found out the following: on all printers where a standard universal driver is used (From the description: IEEE 1284.4 universal print support) the program, when you click on print, crashes. But, when printing from the same text editor, everything prints well, without errors and closures. How can this problem be solved??
Reinstallation of drivers for relatives is impossible, since Printers whose drivers do not support axes younger than Win XP are used.

  • Look under the debugger. Although, if the printer is so old, it can also interfere with DEP. - Streletz
  • @Streletz, hp 1010 printers, and DEP - is it Data Execution Prevention? - Maks
  • Yes. And by the way for this printer on of.sayte there are drivers for Vista. In theory, they can go under 7 and even under 10, but you need to carefully try . - Streletz 6:12 pm

0