We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

PdfViewer PrintDocumentWithSettings cannot find printers after registry setting change

Aspose.Pdf v17.4.0 PdfViewer.PrintDocumentWithSettings() was unable to find installed printers after a registry setting change. Registry entry: hklm\system\currentcontrolset\services\lanmanserver\parameters /v DisableStrictNameChecking /t REG_DWORD /d 1

This was set to “1” to allow a CNAME for the print server which caused the viewer to not find the installed printers. Setting it back to “0” fixed the issue.

Windows server 2008.

Is there a way to change the registry setting without affecting printing?

@mlugo.penntreaty

The issue does not seem related to Aspose.PDF API but with OS. Disable Strict Name Checking registry entry controls access to remote servers and if it is enabled, OS cannot access remote server or any shared resource over it. You can further check these details and how to access files/resources when it is enabled over Microsoft Help Article. In case you need further assistance regarding Aspose.PDF API, please feel free to let us know.