Need advice from Team_RichView

General TRichView support forum. Please post your questions here
Post Reply
poojamulti
Posts: 7
Joined: Sat Apr 01, 2017 6:20 am

Need advice from Team_RichView

Post by poojamulti »

Hi,

I am using RV version 14.6 / D7.
I have 100,000+ rvf documents stored in blobs which contain hyperlinks.

Now, i want to generate RTFs where hyperlinks are to be replaced by footnote number & relevant footnote matter (can be multiple para with tables).

Any ideas are welcome. Currently, i am planning to generate RTF files and parse all elements.

-Sam
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Need advice from Team_RichView

Post by Sergey Tkachenko »

It would be much simpler to change TRichView content before saving RTF.
From where do you want to get footnote texts?
poojamulti
Posts: 7
Joined: Sat Apr 01, 2017 6:20 am

Re: Need advice from Team_RichView

Post by poojamulti »

Hi Sergey,

Thanks for providing the URL. I have now upgraded to RichView v17.

Now, i have managed to insert footnotes in Main document. However, i am facing trouble inserting footnotes inside tables. I am cycling through all items and getting ItemNo (inside cell) after which i want to insert footnote. However InsertItem() inserts at CurItemNo. Is there anything like "InsertItem_AfterItemNo" ?

PS : My footnote texts are RVF.
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Need advice from Team_RichView

Post by Sergey Tkachenko »

I attached a sample project converting hyperlinks to footnotes.
Before:
Links.png
Links.png (4.71 KiB) Viewed 15145 times
After:
Footnotes.png
Footnotes.png (5.88 KiB) Viewed 15145 times
Attachments
LinksToNotes.zip
(4.53 KiB) Downloaded 994 times
poojamulti
Posts: 7
Joined: Sat Apr 01, 2017 6:20 am

Re: Need advice from Team_RichView

Post by poojamulti »

Thanks Sergey,

I was not aware of "RVData.Items.InsertObject(i, s, Note)".

However, i managed with

table.cells[r,c].edit
setselectionbounds()
InsertItem()
etc.

Now i shall change my code to RVData.Items.InsertObject(i, s, Note)

Thanks.
Post Reply