S
Simon Black
Hi,
Im currently developing an application which uses mailmerge in Word.The
problem is related to using the methods LabelOptions and CreateNewDocument.
The application is based in C# using late binding, we are currently testing
this with Office2003 on an XP Pro box.
The LabelOptions method exposes the Word dialog with the available label
choices etc. By making word visible you can see that after choosing a label
from the LabelOptions dialog sets the word document to the correct label. The
problem occurs when CreateNewDocument is called.
We pass in the some text in the Address argument of CreateNewDocument so
that we know where the address is located in the label, we then use text
substitution to replace this with the data from the data source which is a
datastructure in c#.
Everything seems to be fine if the label you have selected is from the same
list the dialog opened with, however if you choose a label from another list
and then call CreateNewDocument it has ignores your selection. Using the
property DefaultLabelName, LabelOptions sets this value but again only when
the item is from the same list the dialogbox is opened otherwise
DefaultLabelName remains unchanged.
This is my first post so I apologise if I have missed any information you
need to help.
Cheers.
Im currently developing an application which uses mailmerge in Word.The
problem is related to using the methods LabelOptions and CreateNewDocument.
The application is based in C# using late binding, we are currently testing
this with Office2003 on an XP Pro box.
The LabelOptions method exposes the Word dialog with the available label
choices etc. By making word visible you can see that after choosing a label
from the LabelOptions dialog sets the word document to the correct label. The
problem occurs when CreateNewDocument is called.
We pass in the some text in the Address argument of CreateNewDocument so
that we know where the address is located in the label, we then use text
substitution to replace this with the data from the data source which is a
datastructure in c#.
Everything seems to be fine if the label you have selected is from the same
list the dialog opened with, however if you choose a label from another list
and then call CreateNewDocument it has ignores your selection. Using the
property DefaultLabelName, LabelOptions sets this value but again only when
the item is from the same list the dialogbox is opened otherwise
DefaultLabelName remains unchanged.
This is my first post so I apologise if I have missed any information you
need to help.
Cheers.