trichview.com

trichview.support




Problem SaveHTML-method


Return to index


Author

Message

Hierold Sascha

Posted: 01/13/2005 11:25:03


Hi,


I try to save a lot of files as HTML. I do it in following way:


I take the DB-table and iterate it through a for-construct. For every time

I call the SaveHtml-method to save the content of the TDBRichViewEdit to

a file.


No I get my HTML-Files, but the content looks like RVF-formated. What do

I wrong?


[CODE]:

for (int i = 0; i < tdbTableContent->RecordCount; ++i)

  {

    while (!rveDB_Content->CanChange()) {

      Application->ProcessMessages();

    }


    rveDB_Content->SaveHTML(ExtractFileDir(Application->ExeName)+"\\temp\\chm\\"+tdbTableContent->FieldByName("ID")->AsString+".htm",

getTopicTitle(tdbTableContent->FieldByName("Kategorie")->AsString), "img_"+tdbTableContent->FieldByName("ID")->AsString,

rvso);

    tdbTableContent->Next();

  }


[HTML]

This is just 1 wrong formated HTML File-Content:

-8 1 3

16 2 3 0 0 0

Hierold Sascha

14 1 2 0 0 0

Export-Test

0 2 0 0 0 0


If I use the method for a single content-view it works. If I do the same

in a for-construct for all content, it doesn´t works.


Bye Sascha





Powered by ABC Amber Outlook Express Converter