Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Laurel
 
Posts: n/a
Default OpenDataSource fails

In a PowerBuilder script, this line of code works fine in Word 9.0 (Office
2000). But it fails in Word 11.0 (Office 2003).

ole_word_file.MailMerge.OpenDataSource(is_excel_do c,0,FALSE,TRUE,FALSE,FALSE,"","",FALSE,"","","Enti re
Spreadsheet")

The error is "Error 35 - Error calling external object function
OpenDataSource at line 52"

Two new parameters have been added in Word 11, [I found a 2003 thread in
this forum which suggesteed that the values should be as follows. This does
not work for me, but I'm working with Word 11, and the author of the 2003
thread was working with "Word 2002" - probably Office 2002? - don't know
what version, but probably 10. Should I be entering a different constant
value for the last parameter?

ole_word_file.MailMerge.OpenDataSource(is_excel_do c,0,FALSE,
TRUE,FALSE,FALSE,"","",FALSE,"","","Entire
Spreadsheet",FALSE,8)

Note that I have no experience working with OLE, so please use "for dummies"
language when responding.

TIA
LAS


 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Opendatasource sqlstatement Roberto Mailmerge 1 January 5th 06 10:37 AM
Normal.dot fails to save anything swanskerry Microsoft Word Help 3 December 8th 05 06:52 PM
Word 2003 fails to set up Avery labels accurately, why??? TerenceR Microsoft Word Help 1 May 25th 05 09:50 PM
OpenDataSource still asks for a table name Don Petersen via OfficeKB.com Mailmerge 4 March 11th 05 07:06 PM
Mouse wheel fails to scroll help frame in Word 2003. jthomas Microsoft Word Help 0 December 22nd 04 09:29 PM


All times are GMT +1. The time now is 09:17 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"