Search found 4 matches

by Vinzenz
Tue Feb 13, 2024 7:37 am
Forum: AXWWriter and DOCXReadWrite
Topic: Keep CHPX of table when adding rows
Replies: 2
Views: 93

Re: Keep CHPX of table when adding rows

Hi, you can try something like chpx.FontName := ATable.FirstCell.Paras.Last.CHPXAtPos(0).FontName; I don't know if it still works without text in the first cell, but it should copy whatever font is used there. As long as you can access any TAXWLogPara the option to get a FontName is there, so you ca...
by Vinzenz
Mon Nov 20, 2023 9:51 am
Forum: AXWWriter and DOCXReadWrite
Topic: How to embed fonts
Replies: 1
Views: 411

How to embed fonts

Hello, ist it possible to embed fonts to a created docx-Documents. Ich searched the demo-projects, including the File-to-code one, but couldn't find anything about it. Does anyone know, if and how this can be achieved? Basically I want to use a font, that is not installed on the computer. I apprecia...
by Vinzenz
Wed Feb 22, 2023 10:44 am
Forum: AXWWriter and DOCXReadWrite
Topic: ReplaceAll does not replace all when inserting paragraphs
Replies: 0
Views: 781

ReplaceAll does not replace all when inserting paragraphs

Hi, I use the ReplaceAll command to replace placeholders in my document, which usually works fine. However, if I insert a paragraph to the document, all placeholders that are further down in the document, than the new paragraph do not get replaced anymore. Is there a way to circumvent that? Here is ...
by Vinzenz
Mon Feb 20, 2023 1:36 pm
Forum: AXWWriter and DOCXReadWrite
Topic: Reset FindReplace
Replies: 0
Views: 838

Reset FindReplace

Hello, I am using the FindReplace method to replace text in my document. When I use ReplaceAll everything works finde, but now I would like to only replace the first instance of a text, so I tried using FindNext and then Replace. My code looks like this: DOCX.Editor.FindReplace.BeginReplaceUI(Placeh...