How to create openXML, when we have symbols in data? RRS feed

  • Question

  • Hello,

    I have some symbols like, #x02208;

    I am creating WordOpenXml from this information. I am creating <w:p> in default font. (i.e. Calibri, body)

    <w:p w:rsidR="00FD58B1" w:rsidRDefault="00771ABE">
            <w:t> #x02208; </w:t>

    However, these symbols, don’t get rendered properly.

    These symbols need to converted first , so that they are displayed properly in Word. There has to be some mapping according to
    mapping table (
    Unicode value for this symbol comes out to be CE. We need to add F000 to it, as Word requires it.

    Also, I will have to add font as Symbol, as shown below, so that Word displays it properly.

    <w:p w:rsidR="00980537" w:rsidRPr="003F0139" w:rsidRDefault="003F0139">
              <w:rFonts w:ascii="Symbol" w:hAnsi="Symbol" />

        Also, there are some symbols, that  get rendered properly in Cambria Math

        So, the problem is while creating this OpenXML, I need to go through every
    such symbol and determine the font that should be used to display it. 

        Is there a way by which Word can itself determine the font to use by looking
    at symbol?

        Also, how do I determine, the font to be used for a symbol?


    Thursday, March 26, 2009 7:12 AM

All replies

  • could you introduce more about:
    where do you get these symbols? i mean it's manually input or from some specific collection?
    how will customers use your generated document?
    some information about the whole process of the document processing -- user scenario is really appreciated.
    Thursday, April 2, 2009 8:27 AM