I need to programatically assign a label printer one of its predefined paper sizes before printing to it. What would be the best method to do this?
Paper Names
-
-
- Offizieller Beitrag
WPRichText1.PaperDefs.Init(true) will fill this collection with names.
Now you can find te item you need and set the DEFCode to the element dmPaperSize. See procedure UpdatePrinterProperties in unit WPCtrMemo as example code.
Julian