I recently purchased TRichView and I decided to install HTMLViewer as well. I grabbed HTMLViewer from Google Code, downloading the Trunk version via Delphi XE.
I have HTMLViewer installed and the demos compile and work great.
Before installing rvHtmlViewImport, I've made the changes as documented at the top of the source file. (Note the TBlockLI.ListFont change is not documented in the ReadMe.txt file.)
Still, I get several compile errors. This confuses me because I should be using the most recent version of both components, and I see Sergey has kept rvHtmlViewImport up-to-date.
The first error was TRVHTMLViewImporter.DoImport wanted to use a ThtDocument for the SectionList parameter if GOOGLECODE was defined. Looking at the HTMLViewer source I have (from http://code.google.com/p/thtmlviewer/), TSectionList is still being used. I changed this code to use the non-GOOGLEDOC version, and it compiled (but may not be correct).
The next problem is in TRVHTMLVIewImport.ImportHorzLine, the first line is looking at blockh1.Owner.BorderStyle. I changed this code to use the non-GOOGLEDOC version, and it compiled.
Next, TRVHTMLViewImporter.ImportSection had code to prevent casting sec.FormControls to TFormControlList when GOOGLECODE wasn't defined. I removed that and the code compiles.
The component now compiles and installs. There are six other places where code is conditionally compiled based on GOOGLECODE that I did not change. Simply disabling the GOOGLECODE define results in many more errors. So I need some of the GOOGLECODE $ifdefs but not others.
Did I do something wrong?
Can't get rvHtmlViewImport to compile
-
- Site Admin
- Posts: 17572
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Posts: 164
- Joined: Tue Nov 08, 2011 5:11 pm