[ Pobierz całość w formacie PDF ]
.FirstTab (Numeric).Affects the table conversion.Defines, how many tabs theconverter should place to the beginning of each row.TabStops (Numeric).Affects the table conversion.Defines, how many charactersis one tab stop.Entities (Boolean 0 or 1).If 1, certain characters are to be converted to theentities defined in HTML DTD, otherwise they are not converted.Use thiscarefully, because if set to zero, you can not put any HTML reserved charactersin the text.Bookmark (text).Defines the bookmark prefix.HtmlDir (dirpath).If present, defines the path to save the *.HTM files.Ifomitted, the converter uses the same directory where the *.doc documentresidesDebug (Boolean 0 or 1).If 1, the converter produces some (internal) debugginginfo into.HTM file.Header SectionProcessInfo (Boolean 0 or 1).If 1, The converter searches the {\info.}section in.RTF file to produce section to resulting file.Thisinformation can be given by using File Summary Info command.ProcessHead (Boolean 0 or 1).If 1, The converter searches the {\headerf.}style in.RTF file to produce section to resulting file.Both or eitherof previous variables can be omitted (or 0).If both are 1, the converter usesProcessInfo.TitleOK (Boolean 0 or 1).If 1, Seraches document Title.SubjectOK (Boolean 0 or 1).If 1, Seraches document Subject.AuthorOK (Boolean 0 or 1).If 1, Seraches document Author.KeywordsOK (Boolean 0 or 1).If 1, Seraches document Keywords.DoccommOK (Boolean 0 or 1).If 1, Seraches document Comments.TitleTag (text).Defines the begin and end markups for appropriate field.Ifthe field is found, the converter concatenates first (to the left of verticalbar) string, the field contents, and last string.The tag can be omitted.Ifonly the first part is omitted, vertical bar must be there as placeholder.SubjectTag (text).As in previous.AuthorTag (text).As in previous.KeywordsTag (text).As in previous.DoccommTag (text).As in previous.Styles sectionIn this section the variable names refer to the appropriate style in WinWord.The value consists five parts:Begin tagWhat the converter produces to beginning of this style.End tagWhat the converter produces to end of this style.ParaWhat the converter uses as paragraph separator within this style.LineWhat the converter uses as line separator within this style.InterpretTells, how the converter interprets the paragraph (\par), paragraph definition(\pard), and line (\line) tags from.RTF.These symbols can not be combined.IPR_NONE:Nothing special.When the parser sees \par, it produces the paragraph markappropriate to current style.IPR_BREAK:This interpretation is essentially the same as IPR_NONE.IPR_NOBREAK:This style can not contain any line breaking characters.IPR_CRLF:This is mostly used in PRE.The entities are used, and paragraph and linebreaks are as they are in.RTF file.IPR_LISTING:This is essentially the same as IPR_PRE.The main reason for this is to givetwo different styles for 'preformatted' data.IPR_HTML:This is mandatorial interpretation.When this is in effect, the text read from.RTF file is produced to resulting file as is.No entity translations is made.IPR_LIST:This interpretation is made for nestable lists and menus.RTFTOHTM.DLLThere is one exported function in the converter DLL.C-prototype is as follows:long FAR PASCAL RTFtoHTM(LPSTR iname, int ilen, LPSTR oname, int olen);LPSTR ibuff; //input buffer or filename.int ilen; //length of input buffer.if zero, iname is treated as filename.LPSTR obuff; //output buffer or filename.int olen; //length of output buffer.if zero, oname is treated as filename.The return value represents a length (in chars) of a resulted HTML file orreturn buffer.Basic (or Word macro) declaration is as follows:Declare Function RTFtoHTM Lib "rtftohtm.dll" (iname$, ilen As Integer, oname$,olen As Integer) As IntegerThe meaning of parameters are the same as above.If the function is to be usedwith Visual Basic, all the parameters must be declared ByVal.Name: Jorma Hartikka Senior Programmer AnalystOrg: VTKK Government Systems ltd/Information SystemsEmail: Jorma.Hartikka@csc.fi
[ Pobierz całość w formacie PDF ]