Frequently Asked Component Specific Questions

Options

Display all FAQ items

Search FAQ items:


Displaying items 1 to 1 of 1, page 1 of 1

<< previous next >>

TPlanner
Saving the TPlanner to HTML

The SaveToHTML method generates a HTML file of the TPlanner with all its TPlannerItem objects. This is done with:
procedure SaveToHTML(FileName: string);
Example:
This example outputs the TPlanner in HTML in a table that has 80% width, centered on the page with bold header and sidebar font. It shows the output in a browser:
uses 
  ShellAPI;

Planner1.HTMLOptions.Width := 80; 
Planner1.HTMLOptions.SidebarFontStyle := [fsBold]; 
Planner1.HTMLOptions.HeaderFontStyle := [fsBold]; 
Planner1.HTMLOptions.PrefixTag := '<CENTER>'; 
Planner1.HTMLOptions.SuffixTag := ''; 
Planner1.SaveToHTML('myHTML.htm'); 
ShellExecute(0,'open','myHTML.htm',nil,nil,SW_NORMAL);