# Change text color on document printer receipt

**URL:** <https://forum.sambapos.com/t/change-text-color-on-document-printer-receipt/23854>\
**Category:** V5 Question\
**Created:** [February 23, 2021, 11:15pm UTC](https://forum.sambapos.com/t/change-text-color-on-document-printer-receipt/23854 "2021-02-23T23:15:23Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![josephrussell](https://forum.sambapos.com/user_avatar/forum.sambapos.com/josephrussell/32/57854_2.png) [@josephrussell](https://forum.sambapos.com/u/josephrussell)\
**Post date:** [February 23, 2021, 11:43pm UTC](https://forum.sambapos.com/t/change-text-color-on-document-printer-receipt/23854/4 "2021-02-23T23:43:39Z")

</div>

You can search the web for WPF. Thats generally where I find this information.

> **[TextBlock.Foreground Property (System.Windows.Controls)](https://learn.microsoft.com/en-us/dotnet/api/system.windows.controls.textblock.foreground?view=windowsdesktop-8.0&viewFallbackFrom=net-5.0)**
>
> Gets or sets the Brush to apply to the text contents of the TextBlock.

> [@Ticket template codings](https://forum.sambapos.com/t/ticket-template-codings/23523/14):
>
> FYI, I did try Document Printer with throwing a bunch of commands on a print template. All I did was change my printer to Document Printer and it printed perfectly. So… you could have circles, but I think the boxes are just as good. Here is a pic, HTML printer on the left and Document Printer on the right. Document Printer Object Info: Center Text in a WPF XAML Shape: [https://weblogs.asp.net/psheriff/centering-text-on-a-wpf-shape](https://weblogs.asp.net/psheriff/centering-text-on-a-wpf-shape) WPF Shapes and Basic Drawing: [https://docs.microsoft.…](https://docs.microsoft.com/en-us/dotnet/desktop/wpf/graphics-multimedia/shapes-and-basic-drawing-in-wpf-overview?view=netframeworkdesktop-4.8)

---

_[View the full topic](https://forum.sambapos.com/t/change-text-color-on-document-printer-receipt/23854)._
