Problem with SaveHtml and SaveHtmlToStream functions in RV

General TRichView support forum. Please post your questions here
Post Reply
Pratik Tiwari

Problem with SaveHtml and SaveHtmlToStream functions in RV

Post by Pratik Tiwari »

Hi Sergey,

When we have any text in RichView in indented fashion as shown below
1. abc
1.1. asd
1.1.1. wwee
1.1.2. xyz
1.1.2.1. qwd
2. asdf

and if I save this as HTML, then I get the output text in Html file as below

1. abc
1. asd
1. wwee
2. xyz
1. qwd
2. asdf

I have tried this with MSWord-2000,
it gives the correct output.

Can you help me out in this situation.

Thanks in advance.

Regards,
Pratik
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

HTML does not support complex numbering.

It's only possible to export it as a text (and MS Word does it).
TRichView can do it too: include rvsoMarkersAsText in Options of SaveHTML/SaveHTMLEx
Pratik Tiwari

Problem with SaveHtml and SaveHtmlToStream functions in RV

Post by Pratik Tiwari »

When I included rvsoMarkersAsText in Options of SaveHTML/SaveHTMLEx it gave the correct numbering but all other formatting was lost.

The other options which I'm using is rvsoMiddleOnly.

Please help me out.
Thanks in advance.

Regards,
Pratik
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

All formatting is lost if you use SaveHTML. But for SaveHTMLEx, all formatting must be retained (except for the distance between number and the text in the first line)
Post Reply