Page 1 of 1

data-aware HTML example

Posted: Mon Aug 04, 2014 5:09 pm
by Jim Sawyer
I need to see an example of an editor using data-aware components which will generate the document and save it as an HTML document to be used in emailing. The

SaveHTML

and

SaveHTMLEx

don't seem to apply to data-aware editor, so I am lost. I am using the trial download, and want to be able to do this before I buy the package.

Thanks
Jim Sawyer

Posted: Tue Aug 05, 2014 1:34 pm
by Sergey Tkachenko

rvHtmlViewImportD7 and THTMLViewer

Posted: Thu Aug 07, 2014 2:37 pm
by Jim Sawyer
I downloaded these packages and have read the "readme.txt" file included in the packages. I have less than no idea how to install these packages after reading "readme.txt". Could someone please provide some more detailed information on how to install them for Delphi 7?

Thank you
Jim Sawyer

Posted: Thu Aug 07, 2014 6:45 pm
by Sergey Tkachenko
For TRVHtmlImporter, it's simple:
Open RVHTMLD7.dpk, click "Install" button in the package window. Add the path to this package in the Delphi library path (Tools | Environment Options, tab Library, Library path).
===============================
For TrvHtmlViewImporter, it's more difficult.
First, you need to install THTMLViewer. For Delphi 7, you can use old version of it from http://www.pbear.com/htmlviewers.html (professional version).
But before installing Frameviewer7.dpk,
1) open its options (Options button in the package window), tab Description, set Build control = Explicit rebuild.
2) Make changes in pas-files:
In "Htmlsubs.pas" in class "TBlockLI"
TBlockLI = class(TBlock)
private
protected // <-- insert this, so we can access ListType, etc.
ListType: ListTypeType;
ListNumb: integer;
...

In "HTMLUn2.pas" in class "TChPosObj"
TChPosObj = class (TIDObject)
public < -- change "private" to "public", so we can access ChPos
ChPos: integer;
List: TList;
...
Add the path to this package in the Delphi library path.

Then install rvHtmlViewImportD7.dpk. But before installing, open rvHtmlViewImporter.pas, find the line {$DEFINE GOOGLECODE} and remove it.
Add the path to this package in the Delphi library path.

PS may be the newest version of THTMLViewer from http://code.google.com/p/thtmlviewer/ would be simple for install, but it needs to be downloaded from svn, and the latest version of this THTMLViewer is supported only in the beta version of TRichView