BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Merge in Word - Using parameter

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
HD
Guest





PostPosted: Wed Jun 22, 2005 4:20 pm    Post subject: Merge in Word - Using parameter Reply with quote



Hi,

I am using Delphi 7 and late binding to the Word application to execute a
merge.
In the OpenDataSource Event, I used to have only the Name
parameter(oMerge.OpenDataSource("c:tempdatasourcename.dbf")), but now, I
need to add the Connection parameter(this to avoid the appearance, while
merging, of an list of ODBC to choose from).
I would like to add the parameter without having to use the "emptyparam" a
certain amount of time. Since I use late binding, I thought that I could
just use the event by naming the parameter and its value, like this:

oMerge.OpenDataSource('Name:= "c:tempdatasourcename.dbf"',
'Connection:="DSN=dBASE files;
DBQ=C:temp; DefaultDir=C:temp; DriverId=533; MaxBufferSize=2048;
PageTimeout=5;" ', 'SQLStatement:="SELECT * FROM datasourcename.dbf"',
'SQLStatement1 :=""')

but it does not seem to work.

Any idea on how I can avoid the EmptyParam solution???

HDumas


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.