Search found 1570 matches

by larsa
Mon Dec 20, 2021 9:11 am
Forum: AXWWriter and DOCXReadWrite
Topic: Some questions about DocxReadWrite
Replies: 15
Views: 2593

Re: Some questions about DocxReadWrite

Hello

1. Cells are combined in this way because this is how the component works. Usually this don't matters as you replaces the content after the merged cells are created.

2. The new line is inserted because otherwise the cells will be empty, and empty cells will have wrong height.
by larsa
Thu Dec 16, 2021 10:13 am
Forum: AXWWriter and DOCXReadWrite
Topic: Beginners Questions about formatting
Replies: 2
Views: 598

Re: Beginners Questions about formatting

Hello

Please take a look at the 3-FormatText sample.
by larsa
Wed Dec 15, 2021 10:06 am
Forum: AXWWriter and DOCXReadWrite
Topic: Some questions about DocxReadWrite
Replies: 15
Views: 2593

Re: Some questions about DocxReadWrite

Hello

Yes, you can do so.
by larsa
Sat Dec 11, 2021 10:52 am
Forum: XLSReadWritwII 6
Topic: Lack of focus
Replies: 3
Views: 2396

Re: Lack of focus

Hello

Try this:

Code: Select all

procedure FocusCell(AGrid: TDrawGrid; ACol, ARow: integer);
begin
  AGrid.LeftCol := Max(0,ACol - (AGrid.VisibleColCount div 2));
  AGrid.TopRow := Max(0,ARow - (AGrid.VisibleRowCount div 2));
end;
by larsa
Thu Dec 09, 2021 12:48 pm
Forum: AXWWriter and DOCXReadWrite
Topic: Some questions about DocxReadWrite
Replies: 15
Views: 2593

Re: Some questions about DocxReadWrite

Hello

No, you can know the page number because there are no pages in a Word file. Pages are produced when you visualize the document like printing it. And how many pages there will be depends on things like paper size margins etc.
by larsa
Wed Dec 08, 2021 5:11 pm
Forum: AXWWriter and DOCXReadWrite
Topic: Some questions about DocxReadWrite
Replies: 15
Views: 2593

Re: Some questions about DocxReadWrite

Hello

If you want to repeat the same table over several pages, the you can just assign the first table to the rest, like:

Code: Select all

var
  T: TAXWTable;
begin
  T := FDOCX.Editor.Paras.AddTable(6,6);
  ...
  FDOCX.Editor.Paras.AddTable.Assign(T);
  ...
  FDOCX.Editor.Paras.AddTable.Assign(T);
end;
by larsa
Wed Dec 08, 2021 8:38 am
Forum: AXWWriter and DOCXReadWrite
Topic: Some questions about DocxReadWrite
Replies: 15
Views: 2593

Re: Some questions about DocxReadWrite

Hello 1. Not the whole header, but you can align the paragraphs: DOCX.Editor.Paras.AppendPara.PAPX.Alignment := axptaRight; 2. Yes, insert a page break at character position 25 in the first paragraph: DOCX.Editor.Paras[0].InsertBreak(acrbtPageBreak,25); 3. Yes, use Default header: DOCX.Editor.Header...
by larsa
Thu Nov 25, 2021 10:10 pm
Forum: XLSSpreadSheet
Topic: Move focus to selected cell
Replies: 9
Views: 21774

Re: Move focus to selected cell

Hello

This question is about TXLSSpreadSheet and not TXLSGrid, which is a toy compared to TXLSSpreadSheet.
by larsa
Thu Nov 25, 2021 10:08 pm
Forum: XLSReadWritwII 6
Topic: Lack of focus
Replies: 3
Views: 2396

Re: Lack of focus

Hello TXLSGrid is a very simple viewer based on Delphi's TDrawGrid component. It can only can handle the most basic cell formatting. If you want to implement any interaction with the component, please study the documentation for TDrawGrid. Do not confuse TXLSGrid with our TXLSSpreadSheet component. ...
by larsa
Sat Nov 20, 2021 8:57 am
Forum: XLSReadWriteII 3/4/5
Topic: File encryption/Password protection
Replies: 1
Views: 2575

Re: File encryption/Password protection

Hello

Version 5 don't support encryption, it's only supported in version 6.

The Password property is only for protected worksheets, it's not used for encryption.
by larsa
Wed Nov 10, 2021 2:36 pm
Forum: AXWWriter and DOCXReadWrite
Topic: Formating of table
Replies: 6
Views: 2322

Re: Formating of table

Hello

Do you use a chinese word/windows? The eastAsia font is used for chinese text.
by larsa
Thu Nov 04, 2021 9:30 am
Forum: AXWWriter and DOCXReadWrite
Topic: Tablecells horizontal aligne
Replies: 2
Views: 1531

Re: Tablecells horizontal aligne

Hello

Format the paragraph. Example:

Code: Select all

  DOCX.Editor.Paras.Last.PAPX.Alignment := axptaCenter;
by larsa
Thu Nov 04, 2021 9:29 am
Forum: AXWWriter and DOCXReadWrite
Topic: Formating of table
Replies: 6
Views: 2322

Re: Formating of table

Hello I can't find any problems. Here is an example I used (assuming the first item in the doc is a table): var T: TAXWTable; C: TAXWTableCell; begin T := DOCX.Editor.Paras.Tables[0]; C := T.Cells[0,0]; C.Paras.Last.ClearText; C.Paras.Last.AppendFormattedText('\F"Courier New"\s10 My Text')...
by larsa
Mon Oct 11, 2021 9:56 am
Forum: AXWWriter and DOCXReadWrite
Topic: Title of a table
Replies: 2
Views: 1694

Re: Title of a table

Hello

The update is ready now.

Use:

Set title in MS Word:
- Right click table.
- Select Table properites.
- Select Alt text
- Set Title.

In DOCXReadWrite, use: DOCX.Editor.FindTable('TableName');
by larsa
Fri Oct 08, 2021 7:06 am
Forum: AXWWriter and DOCXReadWrite
Topic: Title of a table
Replies: 2
Views: 1694

Re: Title of a table

Hello

This is not supported now but we will post an update next week supporting this.