Search found 13 matches
- Fri Aug 18, 2023 8:21 pm
- Forum: AXWWriter and DOCXReadWrite
- Topic: DOCXReadWrite - DOCX.Editor.Clear takes too long
- Replies: 3
- Views: 2678
Re: DOCXReadWrite - DOCX.Editor.Clear takes too long
I made some improvements ... The line which takes the longest time is ... FLogParas.Clear; ... in procedure TAXWLogDocument.Clear; I added this line before ... FLogParas.Updating := True; ... and 3 minutes go down to 2 minutes. I also added an event routine in the Clear function for showing a progre...
- Mon Aug 14, 2023 3:12 pm
- Forum: AXWWriter and DOCXReadWrite
- Topic: DOCXReadWrite - DOCX.Editor.Clear takes too long
- Replies: 3
- Views: 2678
Re: DOCXReadWrite - DOCX.Editor.Clear takes too long
Thank you for your quick answer - even if it is not very helpful ...
- Dirk
- Dirk
- Sun Aug 13, 2023 6:12 pm
- Forum: AXWWriter and DOCXReadWrite
- Topic: DOCXReadWrite - DOCX.Editor.Clear takes too long
- Replies: 3
- Views: 2678
DOCXReadWrite - DOCX.Editor.Clear takes too long
I ask here again a question to all, even if you get unfortunately rarely an answer ... I create an approx. 1000-page document, preview it and have a rather long waiting time when closing it. The command ... DOCX.Editor.Clear; ... takes about 3 minutes. :shock: Is there a better/faster way to delete ...
- Fri Mar 03, 2023 5:02 pm
- Forum: AXWWriter and DOCXReadWrite
- Topic: DOCXReadWriteVCL page columns
- Replies: 2
- Views: 2273
Re: DOCXReadWriteVCL page columns
I found a much more shorter code to make the whole document multi-column:
First argument is the number of colums and second argument is the width of the gap between the columns (don't know in which unit).
- Dirk
Code: Select all
DOCX.Editor.SEP.AddCols( 2 , 20 );
- Dirk
- Fri Mar 03, 2023 4:06 pm
- Forum: AXWWriter and DOCXReadWrite
- Topic: DOCXReadWriteVCL page columns
- Replies: 2
- Views: 2273
Re: DOCXReadWriteVCL page columns
Yes, this is possible. I was just searching for the same topic. The way I found was to add a "section change" (TAXWSEP). A section change has to be added at the end of a section or document (and is effective for the lines above). So you have to add these lines at the end of your document (...
- Tue Aug 09, 2022 10:22 am
- Forum: AXWWriter and DOCXReadWrite
- Topic: DOCXREADWRITE issues
- Replies: 3
- Views: 2792
Re: DOCXREADWRITE issues
1) How to set text font? It worked previously my code: CHPX := TAXWCHPX.Create(DOCX.Editor.MasterCHP); Para := DOCX.Editor.Paras.AppendPara; CHPX.FontName := 'Times New Roman'; Para.AppendPlainText(CHPX,'Lorem '); When using output format .docx you have also to set hAnsi and Ascii ... CHPX := TAXWC...
- Tue Aug 02, 2022 5:58 pm
- Forum: AXWWriter and DOCXReadWrite
- Topic: Adding a automatic page numbering to a footer
- Replies: 5
- Views: 8370
Re: Adding a automatic page numbering to a footer
Hi Vinski,
thank you for your hint, but I solved it by adding two lines in the source code (function TAXWLogPara.AppendPlainText).
The second issue could also solved in the source code.
I changed initialization of FShowFields from True to False (in AXWGDIText.pas: TAXWTextPrint.Create).
- Dirk
thank you for your hint, but I solved it by adding two lines in the source code (function TAXWLogPara.AppendPlainText).
The second issue could also solved in the source code.
I changed initialization of FShowFields from True to False (in AXWGDIText.pas: TAXWTextPrint.Create).
- Dirk
- Tue Aug 02, 2022 4:04 pm
- Forum: AXWWriter and DOCXReadWrite
- Topic: DOCXREADWRITE issues
- Replies: 3
- Views: 2792
Re: DOCXREADWRITE issues
Additional information: Issue 3 ("error message when saving as pdf") comes up, when at least one of the Para.AppendFormattedText lines after the AddTOCReference is commented out ... Para := DOCX.Editor.Paras.AddTOCReference( TOC[2] , 'TOC 3' , '' ); // Para.AppendFormattedText( '\s14\BHead...
- Mon Aug 01, 2022 9:05 pm
- Forum: AXWWriter and DOCXReadWrite
- Topic: DOCXREADWRITE issues
- Replies: 3
- Views: 2792
Re: DOCXREADWRITE issues
for 2) TOC The sample here seems not to be correct: https://www.axolot.com/BB3/viewtopic.php?f=18&t=2496 I modified the code and got it (almost) to run properly: unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Contro...
- Tue Apr 12, 2022 8:45 pm
- Forum: AXWWriter and DOCXReadWrite
- Topic: issues with IndentLeft/IndentHanging
- Replies: 0
- Views: 3377
issues with IndentLeft/IndentHanging
I try to realize an individual numbered list (with individual numbers - and bigger distance between number and text. Here is en extract of my code (in C++): Para = DOCXEditor->Paras->AppendPara(); Para->PAPX->IndentLeft = 50; Para->PAPX->IndentHanging = 50; Para->AppendPlainText( IntToStr( (__int64)...
- Tue Apr 12, 2022 7:48 pm
- Forum: AXWWriter and DOCXReadWrite
- Topic: Adding a automatic page numbering to a footer
- Replies: 5
- Views: 8370
Re: Adding a automatic page numbering to a footer
I tried the code (with TDOCXReadWriteVcl 2.00.49) in a this modified version: DOCX.Editor.Footers.AddDefault; DOCX.Editor.Footers.Default_.Paras[0].PAPX.Alignment := axptaCenter; DOCX.Editor.Footers.Default_.Paras[0].AppendPlainText( ' - ' ); DOCX.Editor.Footers.Default_.Paras[0].AppendField('1','PA...
- Wed Feb 16, 2022 9:59 pm
- Forum: AXWWriter and DOCXReadWrite
- Topic: How can I adjust document preview?
- Replies: 1
- Views: 1906
How can I adjust document preview?
I am using preview component of version 2.00.49 like this: Preview = new TAXWPreviewVcl( this ); Preview->Parent = this; Preview->Align = alClient; Preview->Document = DOCX->Editor; Works fine, but the document is always in same size on the screen. How can I adjust the preview with these functions: ...
- Wed Feb 16, 2022 9:48 pm
- Forum: AXWWriter and DOCXReadWrite
- Topic: DOCXReadWrite Document with many page Orientations
- Replies: 1
- Views: 3797
Re: DOCXReadWrite Document with many page Orientations
Same problem on my side with release 2.00.49. Here is my C++ source code which I use (C++ code): DOCX->Editor->DocumentProps->Title = "Title...";DOCX->Editor->DocumentProps->Author = "Author..."; DOCX->Editor->DocumentProps->Revision = "Revision..."; DOCX->Editor->Docum...