Options

New Paragraph

DnealDneal Member Posts: 103
Hi,

I need a space between my paragraphs in a report I am building. I'm trying to use the \, but I don't know how to insert that into the report. Any help is much appreciated.

Dneal
Newbie

Comments

  • Options
    WaldoWaldo Member Posts: 3,412
    Don't exactly know what you mean.

    Did you try to work with sections (empty sections to create empty space)?

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • Options
    krikikriki Member, Moderator Posts: 9,090
    You have to put the property "Multiline" on the field. (If you want it in a field).

    If you want an empty line between lines, you must create an extra section that is blank and in the OnPreSection, you need to put code (CurrReport.SHOWOUTPUT(Boolean)) to show the section or not (=to have a blank line or not).
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • Options
    DnealDneal Member Posts: 103
    I"m working with extended text in a record. I modified the extended text code unit to allow the user to choose default paragraphs.
    The report looks like this:

    DataItem Name
    Sales Header <Sales Header>
    - Cover Letter Lines <Cover Letter Lines>
    Integer CopyLoop
    - Integer CoverLines


    So in the Cover Letter Lines code for OnAfterGetRecord() I have:
    TempCoverLine := "Cover Letter Lines";
    TempCovetLine.INSERT;
    HighestLineNo := "Line No.";

    So I want to do a condition that looks like this:
    TempCoverLine := "Cover Letter Lines";

    IF TempCoverLine."No." <> '' THEN BEGIN
    //Insert a blank line in the report here for a new paragraph.
    END;

    TempCovetLine.INSERT;
    HighestLineNo := "Line No.";

    When I try the empty section it does it for each line. Because of the order of triggers I can't get a global flag to work in a condition for the OnPreSection. (When it looped through the OnAfterGetRecord I tried to set the global,of course it just overwrites itself.)
    I'm new at Navision, and very new with reports. My first one actually. Any kindly advice or suggestions is appreciated.

    Dneal
    Newbie
  • Options
    krikikriki Member, Moderator Posts: 9,090
    If I got it right, you have different lines and in one of the lines is a sign to make a new paragraph.
    In this case : make 2 sections. 1 with the text to print, the other with a blank section.
    In the section to leave blank put in the OnPreSection:
    CurrReport.SHOWOUTPUT(TempCoverLine."No." <> '');
    

    In the section to print a textline put in the OnPreSection (only in case it is a line that serves as a paragraph-seperator and it has no text in it):
    CurrReport.SHOWOUTPUT(TempCoverLine."No." = '');
    
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • Options
    DnealDneal Member Posts: 103
    Thank you for your help. I got it to work. I better understand how the sections work and how to create conditons for a report.

    Again, thanks for your help and patience.

    Dneal
Sign In or Register to comment.