Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Some form exists of printing justified text in a component RichText.

edited November 2001 in General
Some form exists of printing justified text in a component RichText.
I am needing a lot.
Gratitudes.

Ivan Christian.

Comments

  • edited November 2001
    WPTools can do it as they have their own rich text engine and doesn't rely
    on Window's RichEd.dll. We have an example which shows how to replace the
    rich text engine with InfoPower's rich text control. See your installed
    ..\RBuilder\Infopower directory. You'll need to do somethign similar to
    this, to support WPTool's rich text component.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited November 2001
    Jim Bennett,

    How to do to justify the text in the ppRichtext, which is the method or
    procedure to be executed for this to happen. Because you have to execute
    some thing or else it doesn't work. The examples and the help of InfoPower
    doesn't explain anything and the example of ReportBuilder doesn't show
    anything.

    At once I thank

    Ivan Christian.
  • edited November 2001
    There is an article in the TechTips newsgroup for RichText and has an
    article which explains our basic rich text architecture.

    You can create a descendent for the wpTools rich text control and register
    it with RB. You'll be able to call the public functions and set the public
    and published properties on your descendent through code. If you would like
    to replace the form editor, you can also do this, but it may be tricky,
    depending on how wpTools wrote their code. We did this for the Infopower
    example with the following project, if you are curious.
    http://www.digital-metaphors.com/tips/CustomRichTextEditor.zip


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited November 2001
    Jim Bennett,

    I didn't get to alter the editor of lines of TppRichText, because I didn't
    find the p?cote that should be compiled to alter the standard editor of
    lines of TppRichText. I created my own editor of lines and I saved like
    ppRichEd.pas and I compile all of Report Builder pac?teses more it continues
    executing the old editor of lines. How do I get to compile my editor and as
    I do for him to execute?

    I thank your attention.

    Respectfully,

    Ivan Christian
  • edited November 2001
    By running the infopower example, you'll notice that the editor is the
    same... Only the rich text engine behind it is different. However, we tried
    to use the infopower editor in the example provided in the previous post,
    and it wasn't much fun to pull out their editor and show it in RB.

    The easier approach, and to which I think you will want to do, is to replace
    the form with your own TppCustomRTFEditor descendent. You'll want to
    unregister the RB version and register yours at the bottom of your RTF
    editor form unit:


    initialization
    ppUnRegisterForm(TppCustomRTFEditor);
    ppRegisterForm(TppCustomRTFEditor, TMYRTFEditor);

    finalization

    ppUnRegisterForm(TMYRTFEditor);




    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited December 2001
    I want to print the result of a database query in columns. If i have 5 rows
    the result will be the following:

    row1 row2 3 files, 2 columns

    row3 row4

    row5

    or

    row1 row4 3 files, 2 columns

    row2 row5

    row3

    Can you help me?

    Thank you, Paula.
  • edited December 2001
    Create two columns in the report. Report.Columns := 2
    Then set the DetailBand's ColumnTraversal property. Looks like you want to
    set the column count to (RecordCount div 2).


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.