Z
Zhuklinets
Hello. I need to merge some data from MS SQL with word template.
There are many lines - some fields are unique, some not. I.e.
Table:
ID FirstName LastName Number Language
1 Mary Ann 1 Lang1
1 Mary Ann 1 Lang2
1 Mary Ann 1 Lang3
2 Peter Stas 1 Lang1
2 Peter Stas 1 Lang2
3 Bob Marley 1 Lang1
Document must be like:
Employee Mary Ann with number 1 knows
<there is a table>
--------------
Lang1 |
-------------
Lang2 |
-------------
Lang3 |
---------
And other docs with other people.
I've found article http://support.microsoft.com/kb/211303, but I can't
even make work correctly their example -
in doc was page breaks, city appears twice at first iteration... And I
can't insert here my code from document also.
Could anyone helps to solve that problem with complex merging?
There are many lines - some fields are unique, some not. I.e.
Table:
ID FirstName LastName Number Language
1 Mary Ann 1 Lang1
1 Mary Ann 1 Lang2
1 Mary Ann 1 Lang3
2 Peter Stas 1 Lang1
2 Peter Stas 1 Lang2
3 Bob Marley 1 Lang1
Document must be like:
Employee Mary Ann with number 1 knows
<there is a table>
--------------
Lang1 |
-------------
Lang2 |
-------------
Lang3 |
---------
And other docs with other people.
I've found article http://support.microsoft.com/kb/211303, but I can't
even make work correctly their example -
in doc was page breaks, city appears twice at first iteration... And I
can't insert here my code from document also.
Could anyone helps to solve that problem with complex merging?