?
Solved

How to export records from Tlistview to a HTML format report?

Posted on 2000-04-01
2
Medium Priority
?
153 Views
Last Modified: 2010-04-04
I write a ap. and generate some records
stored in Tlistview, I wonder how to
export these records from Tlistview to
a HTML format report?

Rgds

Chiwan
0
Comment
Question by:chiwan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Expert Comment

by:simonet
ID: 2676213
How are the record stored?
0
 
LVL 17

Accepted Solution

by:
inthe earned 400 total points
ID: 2676255
hi,
something like this:

procedure TForm1.Button1Click(Sender: TObject);
var
sl : tstringlist;
i : integer;
begin
sl := tstringlist.create;
sl.add('<HTML>');
sl.add('<HEAD>');
sl.add('<TITLE>');
sl.add('My Report');
sl.add('</TITLE>');
sl.add('</HEAD>');
sl.add('<BODY>');
for i := 0 to listview1.items.Count -1 do
begin
sl.add('<li>' + listview1.Items[i].Caption);
end;
sl.add('</BODY>');
sl.add('</HTML>');
sl.SaveToFile('c:\myreport.html');
sl.free;
sl := nil;
end;
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month11 days, 11 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question