However, when testing this on another Computer, I noticed that this does not work if LiveCycle Designer is not installed. This concerns xfa.host.importData() and xfa.host.exportData(). Is there another way to save and open XML-files? It would be useful to have this possibility even on Computer without LC.
It has nothing to do with Designer being installed. I am guessing that on those other machines that you are running Reader. To save data out of a form using Reader the form must be Reader Extended to allow this.
Actually, I am looking for a possibility for every user to save XML code and eventually load it back in without having to download/buy any further programs.
I now had the idea to generate XML code in a textfield when the user clicks on a button. This code can be copied in an extern .txt file so every piece of information can be stored - even if the document is closed. It is also possible to reenter this code into the textfield and click on another button which uses the loadXML() function.
This works pretty good except for images. Saving the rawValue of an image would create hundreds of lines of source code... so now all I need to know is how to keep the information of an image field (It can display multiple images, depending of the users choice).