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 » Tue Nov 28, 2017 4:54 pm

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: 14225
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Need advice from Team_RichView

Post by Sergey Tkachenko » Wed Nov 29, 2017 12:56 pm

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 » Wed Nov 29, 2017 1:18 pm

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: 14225
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Need advice from Team_RichView

Post by Sergey Tkachenko » Fri Dec 01, 2017 12:59 pm

I attached a sample project converting hyperlinks to footnotes.
Before:
Links.png
Links.png (4.71 KiB) Viewed 2476 times
After:
Footnotes.png
Footnotes.png (5.88 KiB) Viewed 2476 times
Attachments
LinksToNotes.zip
(4.53 KiB) Downloaded 94 times

poojamulti
Posts: 7
Joined: Sat Apr 01, 2017 6:20 am

Re: Need advice from Team_RichView

Post by poojamulti » Mon Dec 04, 2017 4:22 am

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