We have a Word Template with bookmarks and currently the bookmarks get populated by looping through the bookmarks.
-------------------------------------------------------------------------
Code Stub:
// Loop thru all the bookmarks and get and set the text in that bookmark
IF ll_bookmark_count > 0 THEN
FOR i = 1 TO ll_bookmark_count
// Get the text to be set at that bookmark
ls_bookmark_text = wf_get_bookmark(uo_word_doc.of_get_bookmark(i))
NEXT
END IF
-------------------------------------------------------------------------
Template Bookmark Names
--------------------------------------- -----------------------------
[X] Reported: [mm/dd/yyyy] RptdChk, RptdTxt, DateRptd
[ ] Need to contact before [mm/dd/yyyy] CntactChk, CntctTxt, BeforeDt
The users now want a few of the template fields suppressed depending on cetain data conditions. For example, if there is no date in the Date_Reported DB filed, do not show the checkbox [RptdChk], static text [RptdTxt] or the Date Reported [DateRptd]. Essentially do not show the entire line.
I have not been able to figure out how to code this so this line effectively gets suppressed.
I appreciate any suggestions, alternatives, etc.
Thanks,
Bill
-------------------------------------------------------------------------
Code Stub:
// Loop thru all the bookmarks and get and set the text in that bookmark
IF ll_bookmark_count > 0 THEN
FOR i = 1 TO ll_bookmark_count
// Get the text to be set at that bookmark
ls_bookmark_text = wf_get_bookmark(uo_word_doc.of_get_bookmark(i))
NEXT
END IF
-------------------------------------------------------------------------
Template Bookmark Names
--------------------------------------- -----------------------------
[X] Reported: [mm/dd/yyyy] RptdChk, RptdTxt, DateRptd
[ ] Need to contact before [mm/dd/yyyy] CntactChk, CntctTxt, BeforeDt
The users now want a few of the template fields suppressed depending on cetain data conditions. For example, if there is no date in the Date_Reported DB filed, do not show the checkbox [RptdChk], static text [RptdTxt] or the Date Reported [DateRptd]. Essentially do not show the entire line.
I have not been able to figure out how to code this so this line effectively gets suppressed.
I appreciate any suggestions, alternatives, etc.
Thanks,
Bill