Posted Thu, 22 Nov 2018 19:59:26 GMT by 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:

How do I change the text colour?  All I could find was this EntryBase class 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!



Posted Tue, 27 Nov 2018 20:28:11 GMT by 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.