There's missing something like this in you function GetTplParams() :
params = GetOpenDefaultParams();
Hi Klaus, Can you tell me exactly what you are trying to do? I should be able to help you but I need to know what you are specifically trying to do. Thanks. -Rick
Thanks Klaus - now it works!
The presented piece of code is part of a 're-furbishing' the FameMaker to EndNote 'connection.
In a first step I collect temporary citations (such as [Daube, 1969, #123] ) from text, footnotes and tables into an array. This part already works fine (I had to postpone further development for a year now...).
Then I write this data to a new document (which is created from the template - this is where the mentioned piece comes into play.
This file then is saved as rtf to be worked off by the bibliographic application EndNote (or Citavi in another case) to resolve the temporary citation into formatted citations and the bibliography.
After that the modified rtf is read in FM and the temp. citations in the FM-document/book are replaced by the formatted citations.
The user then copies the bibliography (as text only) into his appropriate chapter/section and formats it to his liking.