Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / September 2006

Tip: Looking for answers? Try searching our database.

Word merge using sharepoint lists directly?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Søren Dalhoff - 13 Sep 2006 21:57 GMT
Is it possible to merge word directly using sharepoint data list, without
exporting the sharepoint data into excel and then merging with excel?

Microsoft Windows Small Business Server 2003, Premium Edition
Office 2003
Peter Jamieson - 18 Sep 2006 09:35 GMT
If you are still interested in this, I believe it is possible to merge from
a Sharepoint list using a linked table in Access, but it's tricky to set up.

However, to do that, you need Access on your system and you need to link to
the relevant Sharepoint list(s). Also, you will probably find that Word does
not "see" the linked tables when you try to link to the Access database, but
I believe it will correctly use them if you issue the correct SQL in a VBA
OpenDataSource command.

I believe it should be possible to create an Access .mdb and the appropriate
linked tables programmatically using ADOX (even if you haven't got Access on
your system) but even that is tricky because
a. you need to find out the "internal" name of the Sharepoint list in order
to create the linked table. There are apparently ways to do that
programmatically but I haven't explored them yet. The simplest way is to use
Access to create the link and examine the resulting table's properties, but
of course that means you have to have Access (although you could probably
distribute the resulting .mdb to non-Access systems)
b. The correct VBA to do this still eludes me

Peter Jamieson

> Is it possible to merge word directly using sharepoint data list, without
> exporting the sharepoint data into excel and then merging with excel?
>
> Microsoft Windows Small Business Server 2003, Premium Edition
> Office 2003
Søren Dalhoff - 18 Sep 2006 10:19 GMT
Not sure why I should use Access because the sharepoint is running on SQL.
Do you have any link or doc on how to setup?

Søren Dalhoff

> If you are still interested in this, I believe it is possible to merge from
> a Sharepoint list using a linked table in Access, but it's tricky to set up.
[quoted text clipped - 23 lines]
> > Microsoft Windows Small Business Server 2003, Premium Edition
> > Office 2003
Peter Jamieson - 18 Sep 2006 10:58 GMT
> Not sure why I should use Access because the sharepoint is running on SQL.

Have you tried linking directly to the SQL Server database with the
Sharepont info. using either ODBC or (probably better) OLEDB? I managed to
do that here a while back, but as far as I can remember the default
permissions for the relevant SQL Server database do not allow it so you
might have to alter them (and maybe you cannot do that).

The reason for suggesting Access is simply that it's easier to do it and I
know it is feasible. In fact, it's slightly easier than I thought. The
procedure is as follows:
a. create a new blank database
b. navigate to File|get External Data|Link tables
c. In the "Files of type" listbox, select Windows Sharepoint Services ()
d. Enter the site address and take it from there. There is an option to
link to more than one table so that lookup items are also available in
Access.
e. If you try using these linked tables as data sources in Word, I don't
think Word will "see" them, but if you create a query in Access that gets
all the items for a linked table, Word seems to "see" that and you should be
able to use it as a data source.

Peter Jamieson

> Not sure why I should use Access because the sharepoint is running on SQL.
> Do you have any link or doc on how to setup?
[quoted text clipped - 40 lines]
>> > Microsoft Windows Small Business Server 2003, Premium Edition
>> > Office 2003
Peter Jamieson - 18 Sep 2006 16:01 GMT
> b. The correct VBA to do this still eludes me

Not any more...

Peter Jamieson

> If you are still interested in this, I believe it is possible to merge
> from a Sharepoint list using a linked table in Access, but it's tricky to
[quoted text clipped - 24 lines]
>> Microsoft Windows Small Business Server 2003, Premium Edition
>> Office 2003
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.