petermeachem
Programmer
What I am trying to do is to read an rtf file, replace some text with text from a database (name and address etc), save it to a folder and display it in word on the user's pc.
To display the file I am shelling to it using a couple of lines of javascript. The code that reads, modifies and writes the file saves the path to the file in a textbox. This I hoped the javascript could use.
Doesn't work. I think that the javascript sub is running before the database related code so there is no path to shell to.
Does that seem likely? If so, how can I do this? I've been struggling away for ages at it. All the individual bits work, just the link from the created filename and the javascript on the browser is not working.
To display the file I am shelling to it using a couple of lines of javascript. The code that reads, modifies and writes the file saves the path to the file in a textbox. This I hoped the javascript could use.
Doesn't work. I think that the javascript sub is running before the database related code so there is no path to shell to.
Does that seem likely? If so, how can I do this? I've been struggling away for ages at it. All the individual bits work, just the link from the created filename and the javascript on the browser is not working.