An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
Thank you for reaching out!
Please follow the steps to solve the issue :
1.Ensure the method is called on the correct thread—UI thread issues can cause instability.
2. Use Print Schema Specification v2.0 to define custom media sizes properly. This involves inserting a psk:CustomMediaSizenode under PageMediaSize with appropriate margins and references to MediaSizeHeight and MediaSizeWidth
3. Validate the PrintTicketFeature and ensure the custom size is supported by the printer driver. Some IPP class drivers may not support user-defined sizes.