We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Using Aspose.Words for .Net as ActiveX Object

I cannot see how I can set a font color via the COM interface to Aspose.Words.

All examples and documents refer to “Color.Green” or “System.Drawing.Color.Green” … clearly these classes and namespaces do not exist by default so how do I set the color?

Example code without color setting:
Set license = CreateObject("Aspose.Words.License")
Set Doc = CreateObject("Aspose.Words.Document")
set Builder = CreateObject("Aspose.Words.DocumentBuilder")
Builder.Document = Doc

Builder.pageSetup.PaperSize = 1
Builder.Font.Name = "Arial"
Builder.Font.Size = 10
Builder.Writeln "My Test"


Thanks for your request. Please see the following link to learn how to resolve the problem.

Best regards,