Hi *,
when building VPE pages it is possible to add Bookmarks to the
current page like this:
LOCAL nParentBookmark AS DWORD
// print the page
odcVPEngine:AddBookmark( nParentBookmark , "Bookmarktext" )
.
.
.
this works fine, but when first building all pages collect the
bookmarkdata for each page in a array during this step
and then use odcVPEngine:currentpage for each page/bookmark
the bookmarks will not appear in it´s parent, they all come
down as each parent would by 0.
it should be possible to build all pages needed, then sort my
array data for bookmarks, and then goto each page and set the
bookmark ?
ntotal := Len( _aKatalogGruppen )
IF ntotal > 0
ASort( _aKatalogGruppen,,, {|x, y| x[1] <= y[1]})
nParentBookmark2 := odcVPEngine:AddBookmark(0, "Artikel-Gruppen")
FOR noft := 1 UPTO ntotal
odcVPEngine:currentpage := pagenum
cString := AllTrim(_aKatalogGruppen[noft,1])
odcVPEngine:AddBookmark( nParentBookmark2 , cString )
NEXT noft
ENDIF
Ecki