Line Spacing Problem

  • I am using wptools 4.25 in Delphi 6. I am using wprichtext.SaveToFile to save the editor text as an RTF file. I have Word 2007.

    When I open the RTF file in Word, the space between lines is huge. I browsed the forum and found the discussions where changing a line in WPwrtRTF to p := StrEPCopy(p,'0'); is discussed.

    I made that change and recompiled wptools. I made sure that the changed WPwrtRTF file was being recompiled by putting in a syntax error below the change. When the compile stopped at that point I removed the syntax error and recompiled wptools again. I also rebuilt my source code.

    I still get the large space between lines when I do SaveToFile and then open the saved file in Word 2007.

    Eventually I am migrating the code to Delphi 2009 and wptools 6. But that is going to take a while. In the short term I need to solve this problem. I'm assuming that I missed a step, or did something wrong.

    Thanks,
    John