Using Aspose.Words for .Net as ActiveX Object

Last post 11-22-2011, 1:45 AM by alexey.noskov. 1 replies.
Sort Posts: Previous Next
  •  11-21-2011, 4:10 PM 343795

    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")
    license.setLicense("Aspose.Words.lic") 
    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"
     
  •  11-22-2011, 1:45 AM 343868 in reply to 343795

    Re: Using Aspose.Words for .Net as ActiveX Object

    Hi

     

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

    http://www.aspose.com/community/forums/thread/240901/problem-when-using-aspose.words-through-com.aspx

     

    Best regards,


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
View as RSS news feed in XML