Hey Guys,
I have run into a strange issue related to rich text controls and rich text datawindows and papersize and orientation between standard printers and label printers.
I am using PowerBuilder 12.5 2511.
We are using rich text controls to allow the user to customize the size and content of labels. Using a base format, users can add/remove columns and change font size, colour, etc...
On a standard printer using 8 1/2" by 11" paper, the orientation of the paper within the rich text control is correct and the rich text control displays the page 8 1/2" wide and 11" inches high.
On a barcode printer, the portrait and landscape properties are backwards. Using 2" high by 4" wide labels configured in Portrait, the label is actually displayed as 2" wide by 4" high in the rich text control and on rich text datawindows.
If I force the landscape orientation on the printer, the rich text control displays the label correctly but the text is rotated on the printer causing the text to be cut off.
My rich text control is using the printer defaults for orientation, size, margins, etc... however it is always displayed in the opposite orientation from the printer. The only way I can force the display and printing to work is to force the width and height to be square (4x4) and use printer settings to determine where the label ends (web sensing). This is not an option as some label printers do not have this capability and print continuous.
I am using a Zebra GK420t and a Wasp WPL-610 printer.
I can provide my rich text for my datawindow if necessary, but it should be fairly easy to reproduce by creating a rich text control and previewing it in PowerBuilder if you have a label printer.
Any ideas on why label printer orientation is backwards from the printer on rich text controls and datawindows in PowerBuilder?
Thanks
Karen