0

How to print rich text

Hello
How to print rich text
thank you in advanceMichel

Michel

7 replies

null
    • Jorg
    • 5 yrs ago
    • Reported - view

    Hi Michel,

    You can print richt text with a Rich text field. If you use that field type in your input form you can add that field in your print layout with big "+" sign in the middle above the print layout.

    You may also use function field in the layout and use the html() function. With this function you can enter HTML code in order to format text and text fields.

    Best, Jörg

    • michellhemery
    • 5 yrs ago
    • Reported - view

    Hello Jörg,
    Thank you for these explanations, but would it be possible to have an example
    best regard

    Michel

    • Jorg
    • 5 yrs ago
    • Reported - view

    Hi Michel, 

    You can add the richt text field as follows:

    Add richt text field

     

    If you add a formula field in the print layout you could use the following formla if you have a field "MyText" that contains your text.

     

    html("<b>" + MyText + "</b>")

     

    Best, Jörg

    • michellhemery
    • 5 yrs ago
    • Reported - view

    super, thank you Jörg but why I have returns lines inadvertent

    • Jorg
    • 5 yrs ago
    • Reported - view

    Hi, 

    What is the code you are using?

    Best, Jörg

    • michellhemery
    • 5 yrs ago
    • Reported - view

    Hello Jörg,
    I did not use any code but redid the print page. What is surprising is that the result on screen and printer is different at the pagination level.

    • Jorg
    • 4 yrs ago
    • Reported - view

    Hi, 

    the inadvertent line returns may result from (not visible) return lines in your Rich text field.

    The preview of the print layout in Ninox will change in little details, like creating the page number, during the print.

    Kind regards, Jörg

Content aside

  • 4 yrs agoLast active
  • 7Replies
  • 2253Views