Please refer to my previous question.
in that time i was using 'Access Database', according to your suggestions it is working fine.
but now i had to use the Text Database(.txt), now the source code is like
SrcName := GetCurrentDir + '\param.txt';
EP := EmptyParam;
ConfConv := False;
ReadOnly := False;
LinkToSrc := True;
AddToRecent := False;
PWordDoc := '';
PWordTemplate := '';
WritePWordDoc := '';
WritePWordTemplate := '';
Conn := '';
SQL := '';
SQL1 := '';
pvDoc := WordDocument1.DefaultInter
face as IDispatch;
me, EP, ConfConv, ReadOnly, LinkToSrc, AddToRecent, PWordDoc, PWordTemplate, EP,
WritePWordDoc, WritePWordTemplate, Conn, SQL, SQL1);
--> the only the change is the parameter Conn := '' as it is text data source.
now the error is:
'Word was unable to open the datasource'
Could you suggest me how can i solve this problem.