masjae.blogg.se

Delphi view file in html
Delphi view file in html












delphi view file in html

The idea is to produce an HTML table from a dataset, in a simple yet flexible way. The DataSetTableProducer component is generally useful for displaying the contents of a table, query, or other dataset. The DataSetPageProducer extends the PageProducer by automatically replacing tags corresponding to field names of a connected data source. You'll process the tags in the OnTag event handler of the PageProducer. The special tags have the basic format, but you can also supply named parameters within the tag. At run time, the PageProducer converts the special tags to HTML code, giving you a straightforward method for modifying sections of an HTML document. The advantage of this approach is that you can generate such a file using the HTML editor you prefer. The HTML can be stored in an external file or an internal string list. The simplest HTML producer component is the PageProducer, which manipulates an HTML file in which you've embedded special tags. Although they were introduced for this purpose and are part of the WebBroker technology, you can still use three out of the five producer components in any application in which you must generate a static HTML file.īefore looking at the HtmlProd example, which demonstrates the use of these HTML producer components, let me summarize their role: Many developers believe that the use of these components makes sense only when writing a web server extension. Delphi's HTML producer components (on the Internet page of the Component Palette) can be used to generate the HTML files and particularly to turn a database table into an HTML table.














Delphi view file in html