Hi Julian,
With WPTools 3.1, when I insert a table of 1 column, it is inserted as lines. Is there an option to insert it as a table of 1 column?
Thank you.
Hi Julian,
With WPTools 3.1, when I insert a table of 1 column, it is inserted as lines. Is there an option to insert it as a table of 1 column?
Thank you.
ImageLogo is a TImage.
procedure Logo
var
TWOPImageLogo : TWPOImage;
begin
TWOPImageLogo := TWPOImage.Create(WPRichText);
ImageLogo.AutoSize := true;
ImageLogo.Proportional := true;
ImageLogo.Stretch := false;
// Assign the Bitmap to ImageLogo
ImageLogo.Picture.Assign(pFIBDataSetLogoEtab.FieldByName('LOGO'));
TWOPImageLogo.Assign(ImageLogo.Picture.Graphic);
WPRichText.TextObjects.Insert(TWOPImageLogo);
end;
Hi Julian,
I want to get the number of characters in the body when a document is opened or closed. Is there a property available or Should I select all the body to get the length?
thank you.
Hi Julian,
The WPTools5 RTF fix, how does it work? What do I do with the Index file?
thank you.
Hi Julian,
CPLineNR doesn't update the cursor attributs. I used WPRichText.WritingAttr.Assign(WPRichText.CurrentCharAttr) to do it.
Hi Julian,
With version 5.18.6, in the header/footer, images inserted in a table are displayed 1 line too high. It's OK if the image is not in a table.
I used WPRichText.TextObjects.Insert(TWOPImageLogo);
Thank you.
Hi Julian,
I didn't found a writing mode property, where is it?
Thank you.
Hi Julian,
If a document have a 'Header on all pages', a 'Header on first page only', a 'Footer on all pages' and a 'Footer on last page only', a blank 'Footer on first page' is added.
For a document that has a 'Header on all pages', a 'Footer on all pages' and a 'Footer on last page only', it's OK.
Thank You.
Hi Julian,
From the body, header or footer, if there is no text selected, is there any reason why WPRichText1.SelectionAsString returned the text body?
I checked the property WPRichText1.SelLength and it's at 0;
thank you.
Hi Julian,
To set the linespacing at multiple with V4.22, I used WPRichText1.CurrAttr.MultSpaceBetween := true;
What is his equivalence with v5?
Thank You.
Hi Julian,
I set _NoClipping to true and it fixed it. Thank you.
The problem occurs on a new document.
In Design, if I open the WPTools Editor of the DBWPRichTect and I select Normal view, I get the same problem too.
Hi Julian,
For a DBWPRichText with page layout at Normal, the 3 last lines are not displayed. (in version 5.18.3).
Thank You.
Hi Julian,
With WPtools 4.22a.
My users use the text editor intensively all day and some times they get an access violation.
Here what is done on the WPRichText object of Form1:
In Form2
Form1.WPRichText1.Clear;
Form1.WPRichText1.FastCopyProperties(WPRichText2);
Form1.WPRichText1.AsString := WPRichText2.AsString;
Form1.WPRichText1.ReformatAll();
In Form1
WPRichText1.WorkOnText := wpHeader;
WPRichText1.CPPosition := 0;
WPRichText1.MoveToNextField(True); <= The access violation happened here.
Have you noticed any problem with function MoveToNextField or do I have to execute an other command to be sure that the object is OK?
Thank you.
Hi Julian,
Here some problems that I get to transfert documents from V4.22a to V5.18.
- An EditField with a space in the text is displayed twice, instead of «test1 test2» I get «test1 test2»«».
- Strange behaviors for tabs. The spacing used for some tabs are wrong, even some tabs are going further than the page border.
- The line's upper border is not shown.
The line is in the header and it follows a table. The table's border is hidden. With version 5.17 the border was shown correctly.
I could send you the template used if you wish.
thank you Julian.
Hi Julian,
I need to display the line number of the active page. Is there a similar function like WPRichText1.GetLineNumber of version 4?
Thank you.
Hi Julian,
Sorry if I didn't explain myself clearly. The problem was not with copy/paste but with DBWPRichText.AsString := WPRichTExt.AsString. The modified text is correctly displayed but when posted the original text returns. But DBWPRichText.SaveChanging effectively solved the problem!
Thank you.
Thank you Alessandro,
I completely forgot about this method: WPRichText1.MovePosition(wpmLEnd, False);
I used it a long time ago. :oops:
Hi Julian,
With version 5.18.1, images aren't lost anymore, but still the DBWPRichText copied from a WPRichTest is not saved.
thank you.
I had to destroy the WPRichText on the form and to add it again, I can compile now.