Notes, Hints and Tips

<< Click to Display Table of Contents >>

Navigation:  Interactive Documents > Advanced Programming >

Notes, Hints and Tips

Previous pageReturn to chapter overviewNext page

The interaction for a document can not be enabled, if the document is stream based, i.e. it is opened using SwapFileName. Stream based documents are not editable. If you want the user to edit a .VPE document file, open a memory based document (i.e. use OpenDoc) and read the document file into memory using ReadDoc().

A template which contains Controls can only be dumped once into a VPE Document. If you wish to dump it more than once into one and the same VPE Document, you need to load the same template as often into memory as you want to dump it. Otherwise DumpTemplate() will return the error code VERR_TPL_PAGE_ALREADY_DUMPED. A template which does not contain Controls can be dumped as often into one and the same VPE Document as you like.

Avoid to spread Radio Buttons which belong to the same group over multiple pages. First of all, this is a bad design for a user interface, but in addition the use of DumpTemplatePage() will not work correctly, if you dump a single page which contains some Radio Buttons which belong to a Radio Button Group that is defined on a different page. (dycodoc defines invisible Radio Button Groups always on the page with the first occurrence of a corresponding Radio Button)