Update a Image
Update a Image
What is the right way to replace a Image for TRVGraphicItemInfo-Object.
Now I use Image.LoadFile(fName) and after RichViewEdit.Reformat.
But I think it's too much for a simply update.
And as second I would like prevent a automatic resize of the Image.
Please tell what is the fastest way without flicker.
Andy
Now I use Image.LoadFile(fName) and after RichViewEdit.Reformat.
But I think it's too much for a simply update.
And as second I would like prevent a automatic resize of the Image.
Please tell what is the fastest way without flicker.
Andy
-
- Site Admin
- Posts: 17554
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
I do not recommend using undocumented methods and objects when it is not absolutely necessary. Do not use TRVGraphicItemInfo object directly.
1) For changing picture as an editing operation (that can be undone) use SetPictureInfoEd or SetCurrentPictureInfo.
2) For changing picture not as an editing operation use SetPictureInfo and then Reformat.
1) For changing picture as an editing operation (that can be undone) use SetPictureInfoEd or SetCurrentPictureInfo.
2) For changing picture not as an editing operation use SetPictureInfo and then Reformat.
-
- Site Admin
- Posts: 17554
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17554
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
This action just calls RichViewEdit.InsertPageBreak method. This method does the following:
- if the caret not at the beginning of paragraph, it adds a line break;
- sets "page break before" flag for the item at the position of the caret.
If the caret is to the left of the table, this action simply sets "page break before" flag for this table, and the table is printed from a new page. But if this table is the first item in the document, this flag is ignored.
- if the caret not at the beginning of paragraph, it adds a line break;
- sets "page break before" flag for the item at the position of the caret.
If the caret is to the left of the table, this action simply sets "page break before" flag for this table, and the table is printed from a new page. But if this table is the first item in the document, this flag is ignored.
-
- Site Admin
- Posts: 17554
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Sorry, I cannot reproduce this problem. I just tried ActionTest demo compiled with TRichView 10.0 and with the latest version available for registered users.If the caret is on the left side the Table, nothing happens by RichViewEdit.InsertPageBreak method.
In both cases, when I insert a table somewhere in text, move the caret to the left of the table, then call "Insert Page Break" action, it inserts a page break before the table, as expected.
-
- Site Admin
- Posts: 17554
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17554
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: