I use the following code to open a word document i created. This word document is a mail merge document, that is linked to one of my SQL answer tables. If I open and print the document only once, it works great.
liloop = 0
liloop.view( "How many stickers do you want?"
;//get the dynamic alias path for app
spath = getAliasPath(":reportsDB:" + "\\"
doc = "test.doc"
while liloop >0
ShellExecuteA(0,"print",sDoc,"",spath,0)
liloop = liloop - 1
endwhile
But now the user wants to print 3 of these documents , now becuase of the data link the word documents fails to print, becuase the other documents are also trying to acces the table and locking it.
Any ideas?
Thanks
Richard
liloop = 0
liloop.view( "How many stickers do you want?"
;//get the dynamic alias path for app
spath = getAliasPath(":reportsDB:" + "\\"
doc = "test.doc"
while liloop >0
ShellExecuteA(0,"print",sDoc,"",spath,0)
liloop = liloop - 1
endwhile
But now the user wants to print 3 of these documents , now becuase of the data link the word documents fails to print, becuase the other documents are also trying to acces the table and locking it.
Any ideas?
Thanks
Richard