Hello servoy users
I reuse a few line from new svy-crm demo application in order to open document store in my database; this is running well but I would like to receive additional information in order to well understand:
if (offd_dm_document)
{
var rnd = Math.random();
tmpfile = application.createTempFile(rnd,'.rtf')
tmpfile = utils.stringReplace(tmpfile,"\\", "/") //replace backslashes with forward slashes to avoid escaping problems
application.writeFile(tmpfile,offd_dm_document)
application.executeProgram('rundll32', 'url.dll,FileProtocolHandler',tmpfile)
}
else
It seems that before to open an rtf or doc or … document store in the database we must first create a temporary file and copy document in it before open the document with ad-hoc program ?
I can not find documentation about application.createTempfile or application.writeFile; they are not even present in the tree that I can see on servoy editor window.
I join in annexe a screen shot that does not show application method ?
Is there some other function that I can use but are not visible ??
Thanks for your help.
Dom Tom