trichview.support
Re: CSV file with html formating |
Author |
Message |
Adriano M. |
Posted: 05/25/2004 11:46:29 "Sergey Tkachenko" <[email protected]> wrote in message news:[email protected]... > Yes, I understand you. > It's possible to modify that sample code so that it will extract substrings > between <as-html> and </as-html>, and to add this substring using > RVHtmlImport. Right. > > But I think it's possible to do it in much simpler way, by loading this CSV > file and converting it to one HTML table, then importing this table using > RVHTMLImport. To redo rvcsv unit it is quie easy, I allmost done this but I still have one question. In the rvhtmlimport unit there is a procedurs LoadHtml and there is a line (below) to add converted RTF code. The problem is that AddItem adds text to the end of document so I should change into InsertItem function. But as FViewer is declarated as TRichView then there is no InsertItem. If you would have any sugestion I would be thankful if you could share your idea. var RVData : TCustomRVData; RVData := FViewer.RVData; RVData.AddItem('', CurContainer.RVT); //2433 line > > Which program creates such CSV files? I don't know exactly, I have found such csv files in the Internet. I think maybe MS products familly. > > > > I think the CSV import unit which is in your page could be improved. > > > > Every HTML record in CSV file begins with <as-html> tag and ends with > > </as-html> tag. I could try to improve the unit but I would like to ask is > > it posible to import HTML code into TRV using RVHtmlImporter. > > > > Do you understand my question? > > > > R, > > A. > > > > > > > > |
Powered by ABC Amber Outlook Express Converter