Explorar el Código

DOCX in china #57

Added unit test Test_Table_SetTableDesignNone() draft. Requires fix in Tables.
master
PrzemyslawKlys hace 9 años
padre
commit
299680c4c0

+ 1
- 0
DocX/Paragraph.cs Ver fichero

new XAttribute(XName.Get("ascii", DocX.w.NamespaceName), fontFamily.Name), new XAttribute(XName.Get("ascii", DocX.w.NamespaceName), fontFamily.Name),
new XAttribute(XName.Get("hAnsi", DocX.w.NamespaceName), fontFamily.Name), // Added by Maurits Elbers to support non-standard characters. See http://docx.codeplex.com/Thread/View.aspx?ThreadId=70097&ANCHOR#Post453865 new XAttribute(XName.Get("hAnsi", DocX.w.NamespaceName), fontFamily.Name), // Added by Maurits Elbers to support non-standard characters. See http://docx.codeplex.com/Thread/View.aspx?ThreadId=70097&ANCHOR#Post453865
new XAttribute(XName.Get("cs", DocX.w.NamespaceName), fontFamily.Name), // Added by Maurits Elbers to support non-standard characters. See http://docx.codeplex.com/Thread/View.aspx?ThreadId=70097&ANCHOR#Post453865 new XAttribute(XName.Get("cs", DocX.w.NamespaceName), fontFamily.Name), // Added by Maurits Elbers to support non-standard characters. See http://docx.codeplex.com/Thread/View.aspx?ThreadId=70097&ANCHOR#Post453865
new XAttribute(XName.Get("eastAsia", DocX.w.NamespaceName), fontFamily.Name) // DOCX in china #57
} }
); );

BIN
DocX/bin/Debug/DocX.dll Ver fichero


BIN
DocX/bin/Release/DocX.dll Ver fichero


BIN
Documentation/Help/Documentation.chm Ver fichero


+ 23
- 0
UnitTests/DocXUnitTests.cs Ver fichero

} }
} }
[Test]
public void Test_Table_SetTableDesignNone()
{
using (DocX document = DocX.Create(Path.Combine(_directoryDocuments, "TablesDesign.docx")))
{
//Add A table
Table t = document.AddTable(2, 3);
Table t1 = document.InsertTable(t);
t1.Design = TableDesign.None;
// requires FIX for .None/.Custom set in a row
// t1.Design = TableDesign.None;
// t1.Design = TableDesign.Custom;
t1.Design = TableDesign.Custom;
t1.Design = TableDesign.ColorfulGrid;
t1.Design = TableDesign.ColorfulGrid;
t1.MergeCellsInColumn(1, 0, 1);
t1.InsertRow();
t1.Rows[2].MergeCells(1, 3);
t1.InsertRow(3);
document.Save();
}
}
[Test] [Test]
public void Test_Document_ApplyTemplate() public void Test_Document_ApplyTemplate()
{ {

Cargando…
Cancelar
Guardar