Hi,
how to open word document with Invoke Code activity and do some activities inside word?
Hi,
how to open word document with Invoke Code activity and do some activities inside word?
Hi @markosc ,
Could you let us know what exactly you are looking for or what are the operations that you want to perform with the word document ?
Some posts where minor operations are being done using the Invoke Code
Activity are below :
I need to remove all borders for table in word. I need to remove borders for only first table in docx.
@markosc ,
Check the workflow below :
Word_Table_RemoveBorders.zip (12.6 KB)
It uses Interop.Word
to remove the borders from the first table. Much like the methods used in the above posts.
Thank you!
Hi,
can you please tell me what to add in the code to align text in the second column to right?
@markosc ,
Try adding the below snippet as shown in the image below :
for(int i =0;i<firstTable.Rows.Count;i++)
{
firstTable.Cell(i,0).Range.ParagraphFormat.Alignment=Microsoft.Office.Interop.Word.WdParagraphAlignment.wdAlignParagraphRight;
}
Let us know if it doesn’t work.
If I put word to visible it shuts it down immediately, and the code aligns the text in first column and not the second.
@markosc ,
You don’t need to make it visible.
This is because the code that I used does it for the first column, the column index needs to be changed from 0 to 1 for second column :
firstTable.Cell(i,1)
Also, this integer value can be configured by passing it as arguments into Invoke Code
Activity.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.