Problem with OpenDataSource call


L

LAS

I'm not sure this is the correct forum for this question. If not, could
someone direct me to a more appropriate one?

The following bit of code is from a PowerBuilder script. It has worked
through many releases of Powerbuilder at many sites and through many Windows
releases. We had to add a parameter when Word 11 was released. It's
failing now with the error below. The difference that I'm aware of is that
Word 14 is running in that environment. The Word 2010 documentation online
shows the same parameters that I'm using here. I doubt that Word 14 changed
them and then Word 2010 changed them back. Right? Any ideas about what to
look for? In particular, is the value 8 for the last parameter, which is
wdMergeSubTypeWord2000 still appropriate? I didn't write this code and
really don't know what that means. Someone told me to set that param to 8
when we had to handle Word 11.

TIA
LAS

ole_word_file.MailMerge.OpenDataSource(is_excel_doc,0,FALSE,TRUE
,FALSE,FALSE, &
"","",FALSE,"","","Entire Spreadsheet", &
"","",FALSE,8) //8 is value for wdMergeSubTypeWord2000

Error: Name not found accessing external object property mailmerge
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top