Close
dtSearch Text Retrieval Engine Programmer's Reference
DOutputBase Class

Class wrapper around dtsOutputInfo, which is used in DSearchReportJob and DFileConvertJob to specify the output format for file conversion and search reports

File: dtsfc.h 

Namespace: dtSearch 

Syntax
C++
class DOutputBase : public DJobBase;
Show:
No members matching the current filter
Show:
No members matching the current filter

The header, footer, beforeHit, and afterHit markings should be in the format of the output. For example, if the output format is HTML, then beforeHit and afterHit markings could be <b> and </b>. 

BeforeHit, AfterHit, Header, and Footer control the appearance of converted text. 

The Header and Footer strings are inserted before and after the body of the document. 

The BeforeHit and AfterHit markers are inserted before and after each hit word. The BeforeHit and AfterHit markers can contain hypertext links. 

To facilitate creation of hit navigation markers, the strings "%%ThisHit%%", "%%NextHit%%", and "%%PrevHit%%" will be replaced with ordinals representing the current hit, the next hit, and the previous hit in the document. 

For example, the following code makes the beforeHit and nextHit marks act as HTML "Previous Hit" and "Next Hit" buttons.

job.BeforeHit = "<A NAME="hit%%ThisHit%%">" "<A HREF="#hit%%PrevHit%%">" "<IMG SRC="hit1.gif" ALIGN="middle" ALT="[Prev Hit]" BORDER=0>"; job.AfterHit = "<A HREF="#hit%%NextHit%%">" "<IMG SRC="hit2.gif" ALIGN="middle" ALT="[Next Hit]" BORDER=0>";
dtSearch::DJobBase | dtSearch::DOutputBase