Font.Color

Hi,
i’m using ASP.NET 2.0
and Aspose.Words 3.5.1,

and I can’t use the Font.Color command (OLE ERROR 80131509), in older versions it works.
What’s the problem?

Thanks!

I am afraid I can be of little help regarding use of Aspose.Words from classic Delphi (not Delphi.NET). Please see my comment at
https://docs.aspose.com/words/net/supported-platforms/

Maybe you will find it helpful for this case too.

You see, Aspose.Words is mainly a .NET component. That’s why we don’t have examples for for using it from C++ and Delphi Pascal.

Best regards,

ok,
thank you for the help!
i’ll read this.

Good morning! (i’m in Brazil),

I see the ‘Underline Enumeration’, and it works well.
But i’m still with problemas with color enumeration,
for eg, Black color is the HEX code $00000001 (Didn’t work), do you have some ‘color enumaration’ like ‘Underline Enumeration’? I see the code: System.drawing.Black, but I don’t know write this in Delphi.

Can anybody help me?
Thanks!

Color is not enumeration - it is a structure. As far as I remember, it is marshalled as OLE_COLOR in COM Interop. Try to search for how to assign System.Drawing.Color value in COM Interop on the web.