WordUtils - to be included in XLUtils

Erel

B4X founder
Staff member
Licensed User
Longtime User
B4X:
Dim doc As WordDocument = wd.CreateDocument
    doc.AddParagraph($"[u]Using BBCode similar to BCTextEngine, to create MS Word documents ?[/u]
[u pattern=wavy_heavy color=0xFF00FF0E]qwd[/u]qwd
qw
[color=magenta]dqefwj [textsize=24]klwejf lkwje[/textsize] flkw jefklw ef[/color] wqedqwd
Nice logo: [img dir=assets filename=logo.png width=60 height=60/]
j dqklwdj [b]qlwdj [i]qklwklsjd[/i][/b] fls"$)
    Dim f As String = doc.SaveAs("C:\Users\H\Downloads", "1.docx", True)
    Wait For (wd.OpenWord(f)) Complete (Success As Boolean)

1623761069176.png
 

Gabino A. de la Gala

Well-Known Member
Licensed User
Longtime User
I suggestion...
How do you see the possibility of opening a word template with a predesigned form and being able to fill in its fields using XLUtils?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Which versions of Word are supported? I'm still using Office 2002!
1. It will create docx documents.
2. Only the PDF feature and of course the OpenWord feature depend on Word being installed.

How do you see the possibility of opening a word template with a predesigned form and being able to fill in its fields using XLUtils?
Such templates are more difficult to work with, compared to Excel templates. It is possible to replace fields: https://www.b4x.com/android/forum/threads/jpoi-to-the-rescue.104082/#content
There are some caveats but it can be useful.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
I'm laughing and the reason that I'm laughing is from the fact that I can be excited from generating a Word document.

And now with a table:
1623921346600.png


B4X:
    doc.append($"
[header]
    [p]header header
    second line[/p]
[/header]

[p Alignment=Center]Using BBCode similar  ?[/p]
[p IndentionLeft=600]first line
second line
[u pattern=wavy_heavy color=0xFF00FF0E]qwd[/u]
[/p]

[p]start
[color=magenta]dqefwj [textsize=24]kl[embossed]wejf[/embossed] [shadow]lkwje[/shadow][/textsize] flkw jefklw ef[/color] wqedqwd
Nice [strike]logo[/strike]: [img dir=assets filename=logo.png width=60 height=60/]
[/p]
[table rows=2 cols=4]
    [row]
        [cell color=red VerticalAlignment=Center width=100][p][color=white][b]test1[/b][/color][/p][/cell]
        [cell width=100][p]test2[/p][/cell]
        [cell width=100][p]test3[img dir=assets filename=logo.png width=60 height=60/][/p][/cell]
        [cell width=100][p]test4[/p][p]aaa[/p][/cell]
    [/row]
    [row]
        [cell][p]AAAA[/p][/cell]
        [cell][p]BBBB[/p][/cell]
        [cell][p]DDDD[/p][/cell]
        [cell][p]EEEE[/p][/cell]
    [/row]
[/table]
"$)
 
Top