Hola. Intento insertar un Tabstop en un doc word 2010 desde c#. El codigo se ejecuta sin errores, pero el Tabstop no aparece. Este es el codigo que uso
string praLiena = "N°: 32 DP/ 2014\tResistencia, 03 de enero de 2014";
Pfo.TabStops.Add(300);
Pfo.Range.Text = praLiena;
Pfo.Range.InsertParagraphAfter();
// Tambien probé esto:
// Pfo.TabStops.Add(300, WdHorizontalLineAlignment.wdHorizontalLineAlignLeft);
// Y esto tampoco anda
//Pfo.TabStops.Add(300, WdHorizontalLineAlignment.wdHorizontalLineAlignLeft, WdTabLeader.wdTabLeaderSpaces);
Tampoco funcionó sangria de primera linea
p3.Range.ParagraphFormat.FirstLineIndent = 280;
Sin embargo, grabé una macro que sí funcion. este es el codigo de la macro (en vba)
x = "xxxxxxxx": y = "yyyyyyyyy"
ActiveDocument.Paragraphs(1).TabStops.Add (280)
ActiveDocument.Paragraphs(1).Range.Text = x & vbTab & y
¿Como se inserta un Tabstop?
Muchas gracias. Saludos