Inserted RTF Text and Beginning Blank Line on Page
Posted: Wed Jan 27, 2010 9:53 pm
I have multiple documents that I am merging together and then exporting to an RTF file. I have used TRichView to create a header and footer that is being inserted and is displayed correctly in the final output. However, I cannot find a way to get rid of the blank line that is appearing at the top of the page (new section) below the header. I have tried the following:
1. Using append of an RVF document. Line is not present but this results in the loss of formatting of the text (specifically left and right tab positions).
2. Using SameAsPrev (from examples). This has the same results as number one.
3. Using SameAsPrev but first creating the appropriate style used in the first item of the incoming document. This would ensure the styles are the same. This has the same results as number one.
4. Using Insert of an RVF document and inserting the '\v' rtf string in the output file (as per example code). This works if the first item is not a picture. In this latter case, the picture is missing.
I have tried every combination I can think of and have looked at every example and topic that I can find. I have looked at the RTF document spec and it does not have any recourse for this. I have spent two days trying to figure out how to get rid of this blank line at the top of the section.
Does anyone have any fresh ideas?
1. Using append of an RVF document. Line is not present but this results in the loss of formatting of the text (specifically left and right tab positions).
2. Using SameAsPrev (from examples). This has the same results as number one.
3. Using SameAsPrev but first creating the appropriate style used in the first item of the incoming document. This would ensure the styles are the same. This has the same results as number one.
4. Using Insert of an RVF document and inserting the '\v' rtf string in the output file (as per example code). This works if the first item is not a picture. In this latter case, the picture is missing.
I have tried every combination I can think of and have looked at every example and topic that I can find. I have looked at the RTF document spec and it does not have any recourse for this. I have spent two days trying to figure out how to get rid of this blank line at the top of the section.
Does anyone have any fresh ideas?