PDA

View Full Version : Merging Multiple RTF's With Footers


Unregistered
July 14, 2004, 20:34:45
Hello,

I am trying to load two different RTF files into a TextControl. Each of the files contains a different Footer. When I save the resulting file, I notice that the footer of the first document overwrites any subsequent documents. I am using the ActiveX Server Text Control version 11.0 (Trial version).

e.g.
Document1.rtf (contains footer "abc")
Document2.rtf (contains footer "xyz")
oText.Load("C:\Document1.rtf", 0, 5, False)
oText.Load("C:\Document2.rtf", 0, 5, True)
oText.Save("C:\Combine.rtf", 0, 5, False)

The contents of Combine.rtf has the correct text from BOTH documents as it should, however; the footer of ALL pages of Combine.rtf shows the footer "abc". I need the footer of the second document to be "xyz".

The reason I need this is because I need a way to grab all of my .rtf files and export them as a multipage PDF file. So if you can think of another way to do this, I am open to other options.

Thanks,
Jeff

Björn Meyer
July 15, 2004, 14:34:06
Hello Jeff

TX Text Control doesn't support multiple headers and footer in one document. Only a header and a first page header is supported by TX Text Control. Therefore, the additional headers and footers will be ignored.