Beiträge von rini

    Hello

    I have a DB-table with a BLOB field.
    This one contains text. Each line separated by LF+CR (#10#13)

    The Blob is linked to a TDBWPRichText

    In Delphi2005/WPTools5 this worked good
    After upgraded to Delph2009/WPTools6 (6.05.8)
    I got an extra empty line between each text line.

    E.g.
    From this in D2005/WPTools5:
    Hello
    World
    AAA

    to this in D2009/WPTools6:
    Hello

    World

    AAA


    In the BLOB, if I reverse the #10#13 after each line to #13#10 then
    it works again with no extra empty lines.
    (I changed the file import utility that populates the BLOB)

    I just want to check here how to resolve this (if it should be #13#10 nowadays) since I also need to convert the database in that case from #10#13 to #13#10.

    Or if this should be done in another way.

    Thanks

    Regards,
    Rikard

    Hello

    I recently took over a project written in Delphi 2005/WPTools 5.
    Since I did not have Delphi 2005 I had to buy Delphi 2009 and upgrade the project to this. At the same time I upgraded the project to WPTools6.

    In the project there are a bit of code intended to remove headers and just keep the header on the first page:

    WPPrinterDocument.AssignToHeader(WPPrinterDocument.HeaderFooter.Get(wpIsHeader, wpraOnAllPages), wpraOnFirstPage);

    WPPrinterDocument.HeaderFooter.Get(wpIsHeader, wpraOnAllPages).Clear();

    //(WPPrinterDocument is a TWPRichText)

    This worked good in Delphi 2005/WPTools5 but in Delphi 2009/WPTools6 it just generates some control codes in the header on the first page when viewing.

    Was this a correct way to remove headers on page 2-n or should it be done in another way?

    Thanks

    Regards,
    Rikard