none
Disable the "print to file" Checkbox

    Question

  • For security reason, we would like to disable the "print to file" checkbox in the default print dialog box. Is it possible to do this at a machine level ?
    David
    Monday, February 8, 2010 2:51 PM

Answers

  •  No.  Print to file is enabled by each applications  Print dialog not by the operating system.  Even when "Print to File" is disabled, people can still print to a file port.


    There is also many solutions online for printing to file when the application does not support it.

    http://support.microsoft.com/kb/274523

    http://windows.microsoft.com/en-US/windows7/Print-to-file
    Alan Morris Windows Printing Team; Search the Microsoft Knowledge Base here: http://support.microsoft.com/search/Default.aspx?adv=1
    • Marked as answer by David Anselme Tuesday, February 9, 2010 7:58 AM
    Monday, February 8, 2010 9:19 PM
    Answerer
  • I've found a workaround to hide to "print to file" checkbox in the default Print Dialog Box. This dialog box is part of the " comdlg32.dll  " file.

    So I opened the comdlg32.dll DLL with Visual Studio 2008, and changed the corresponding control check box property as “Visible” - "False" instead of “true”

    Then I saved the DLL, and replaced the original one in %windir%\system32 folder.
    Please note that because it is a windows protected file, I needed to attach the VHD to another VM to be able to overwrite the original file.


    Of course I believe it is unsupported, but it provides the expected result.

     


    David
    • Marked as answer by David Anselme Monday, February 22, 2010 1:41 PM
    Monday, February 22, 2010 1:34 PM

All replies

  •  No.  Print to file is enabled by each applications  Print dialog not by the operating system.  Even when "Print to File" is disabled, people can still print to a file port.


    There is also many solutions online for printing to file when the application does not support it.

    http://support.microsoft.com/kb/274523

    http://windows.microsoft.com/en-US/windows7/Print-to-file
    Alan Morris Windows Printing Team; Search the Microsoft Knowledge Base here: http://support.microsoft.com/search/Default.aspx?adv=1
    • Marked as answer by David Anselme Tuesday, February 9, 2010 7:58 AM
    Monday, February 8, 2010 9:19 PM
    Answerer
  • I've found a workaround to hide to "print to file" checkbox in the default Print Dialog Box. This dialog box is part of the " comdlg32.dll  " file.

    So I opened the comdlg32.dll DLL with Visual Studio 2008, and changed the corresponding control check box property as “Visible” - "False" instead of “true”

    Then I saved the DLL, and replaced the original one in %windir%\system32 folder.
    Please note that because it is a windows protected file, I needed to attach the VHD to another VM to be able to overwrite the original file.


    Of course I believe it is unsupported, but it provides the expected result.

     


    David
    • Marked as answer by David Anselme Monday, February 22, 2010 1:41 PM
    Monday, February 22, 2010 1:34 PM
  • Could you please provide us in detail..

    How did you opened the comdlg32.dll in VS2008. have you used any decompiler to get the source code or any other option to modify the dll without decompiling.

    It would really help us,if you guide how you did.

    Thanks in advance

    Monday, July 9, 2018 1:33 PM