Share via

In the windows 22H2 version, which windows api is used to modify the windows printer configuration

szmm 25 Reputation points
2023-09-22T07:12:10.61+00:00

I want to modify the Borderless Print switch configuration of windows printer by programming.

As shown below, windows Settings->Bluetooth and other devices->Print preferences (inside print properties) -> advanced ->Borderless Print

For example,deviceCapabilitiesW function in wingdi.h can get the list of supported paper names.

So which windows api is used to modify Borderless Print switch configuration from close to open?

Thank you !

Windows development | Windows API - Win32
Windows for business | Windows Client for IT Pros | User experience | Other
Developer technologies | C++
Developer technologies | C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
{count} votes

2 answers

Sort by: Most helpful
  1. Jeanine Zhang-MSFT 11,356 Reputation points Microsoft External Staff
    2023-09-25T07:06:31.3133333+00:00

    Hello,

    Welcome to Microsoft Q&A!

    You could try to use PageBorderless Enum to specifie whether a print device prints to the edge of the media or provides an unprinted margin around the edge.

    Thank you.

    Jeanine


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.