trichview.com

trichview.support




Export bullets to html manually


Return to index


Author

Message

Pieter E.

Posted: 07/13/2005 13:19:02


Dear Sergey,


I'm trying to export bullets to html manually. There is an error I can’t

explain. The error is: ‘List index out of bounds (1310720)’. I use the following

(short) source to start:


SOURCE:


void __fastcall TTekstFrame1::rveSaveItemToFile(TCustomRichView *Sender,

      const AnsiString Path, TCustomRVData *RVData, int ItemNo,

      TRVSaveFormat SaveFormat, bool Unicode, AnsiString &OutStr,

      bool &DoDefault)

{          

  if(SaveFormat != rvsfHTML) return;


  switch(RVData->GetItemStyle(ItemNo))

        {

          case rvsListMarker:

                {

                  if(ItemNo < 0) return;

                  int iListNo, iListLevel, iStartFrom, i;

                  bool bUseStartFrom;

                  rve->GetListMarkerInfo(ItemNo, iListNo, iListLevel, iStartFrom,

bUseStartFrom);


                  if(rvs->ListStyles->Items[iListNo]->Levels->Items[iListLevel]->ListType

== rvlstBullet)

                        {

                        }                 

                  DoDefault = false;

                          break;

                }

     }

}


Could you please help me out?


Thanks.


Pieter E.





Powered by ABC Amber Outlook Express Converter