B4J Tutorial [XLUtils] Word - bookmarks, urls and page breaks

1624261177989.png


XLUtils v2.02 adds support for urls, bookmarks and page breaks.

A paragraph tag with the PageBreak attribute will start on a new page.
B4X:
$"[p PageBreak=True]This will appear at the top of the page[/p]"$

The url tag can be used to create external or internal links.
External link:
B4X:
$"[p][u][color=blue][url=https://www.b4x.com]www.b4x.com[/url][/color][/u][/p]"$
Adding internal links is done in two steps: create a bookmark, add one or more links to this bookmark.

Create bookmark and set its anchor to "top". Note that it is a self closed tag.
B4X:
$"[p alignment=center][bookmark=top/][TextSize=22][b]Table Of Contents[/b][/TextSize]"$

Create a link to this bookmark:
B4X:
$"[p][color=blue][TextSize=25][url=bookmark://top]šŸ”[/url][/TextSize][/color][/p]"$
 

Attachments

  • WordExample.zip
    16.5 KB · Views: 332
Top