Publié Thu, 22 Nov 2018 19:59:26 GMT par Jon Weston File IT Solutions Sr Application Developer and RIM specialist

I'm using web services to place a text annotation on a page and can get it working successfully using this info:

http://help.docuware.com/sdk/platform/html/7c924cf7-b658-454f-924f-0dd83305bb14.htm

How do I change the text colour?  All I could find was this EntryBase class http://help.docuware.com/sdk/platform/html/2D809B93.htm but I have no idea how to integrate it into the GetAnnotations code (above) to simply make my text annotation red instead of black.  Help!

 

 

Publié Tue, 27 Nov 2018 20:28:11 GMT par Josef Zayats

Jon below is an extract from Docuware provided sample for placing annotations. I added - in bold - the color modifier. Please note, the desiredcolorvalue is a 6-digit Hex number representing RGB color code (examples #000000 is Black, #FF0000 is RED, ##00FF00 is Green)

var annotations = new Annotation()
{
Layer = new List<Layer>()
{
new Layer()
{
Id = 1,
Items = new List<EntryBase>()
{
//Annotation that contains text
new TextEntry()
{
Color = desiredcolorvalue,
Location = new AnnotationRectangle()
{
Left = 100,
Top = 100,
Width = 200,
Height = 200
},
Value = "AutoTest",
Font = new Font()
{
FontSize = 10*20,
FontName = "Arial"
}
},

You must be signed in to post in this forum.