OpenXml Word ,, Set RTL text along with font size -
i trying set font size , right left attrib word table cell text take 1 of them , whenever set them both takes rtl attrib here code
paragraph p = cell.elements<paragraph>().first(); if (p == null || p.elements<run>() == null || p.elements<run>().toarray().length < 1) p.append(new run()); run r = p.elements<run>().first(); runproperties rp = r.appendchild(new runproperties()); fontsize fontsize = new fontsize(); fontsize.val = fontsize.tostring(); rp.appendchild(fontsize); righttolefttext rt = new righttolefttext() { val = new documentformat.openxml.onoffvalue(true) }; rp.append(rt); if (r == null || r.elements<text>() == null || r.elements<text>().toarray().length < 1) r.append(new text()); text t = r.elements<text>().first(); t.text = new.tostring();
those codes sets text cell rtl text standard font size if removed rtl codes font size works fine i'v tried , searched alot no clue tip appreciated
thanks in advance
i.v found reply , needed add together
fontsizecomplexscript fontsizecomplexscript = new fontsizecomplexscript() { val = fontsize.tostring() };
and worked give thanks please mark answered
openxml
No comments:
Post a Comment