Greetings,
I am trying to collate information in a Lotus Notes database and present a report in a Word document. I can create the Word document and fill in the text I need without any problem. I even know how to set bold or italic/underlined font where needed.
The last thing I am trying is to get the text centered. This simply does not work.
I have tried with all the following code examples :
1) worddoc.activewindow.selection.paragraphs.format.alignment = 1
2) worddoc.activewindow.selection.paragraphformat.alignment = 1
3) worddoc.paragraphs.alignment = 1
4) worddoc.activewindow.selection.find.paragraphformat.alignment = 1
These lines are taken directly from the online MSDN library. They do not work for me. My values are correct because I know that left/center/right/full is 0/1/2/3.
What is not working ? What magic combination should I use ?
Thanks in advance for any help.
Pascal.
I am trying to collate information in a Lotus Notes database and present a report in a Word document. I can create the Word document and fill in the text I need without any problem. I even know how to set bold or italic/underlined font where needed.
The last thing I am trying is to get the text centered. This simply does not work.
I have tried with all the following code examples :
1) worddoc.activewindow.selection.paragraphs.format.alignment = 1
2) worddoc.activewindow.selection.paragraphformat.alignment = 1
3) worddoc.paragraphs.alignment = 1
4) worddoc.activewindow.selection.find.paragraphformat.alignment = 1
These lines are taken directly from the online MSDN library. They do not work for me. My values are correct because I know that left/center/right/full is 0/1/2/3.
What is not working ? What magic combination should I use ?
Thanks in advance for any help.
Pascal.