Recent

Author Topic: [SOLVED] LazReport setting frame line  (Read 575 times)

madref

  • Hero Member
  • *****
  • Posts: 1085
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
[SOLVED] LazReport setting frame line
« on: September 13, 2023, 02:32:41 pm »
I am using LazReport to create a report.
I have written a script that says if the value is in [0..3] then nothing must be printed in the Memo and if its > 3 then write a name.


Is it possible to set the bottom frame of a memo-field in the value of a field is < 3.


P.S. I already revised the script to ... [TQ_Rapport_Master."Wed_Scheids_1"] < 4 .....
« Last Edit: September 14, 2023, 12:25:37 am by madref »
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Main Platform:
--------------
Mac OS X Sonoma 14.7
Lazarus 3.99 (Lazarus 3.99 (rev main_3_99-2668-g6b352d830e) FPC 3.3.1 x86_64-darwin-cocoa)

Windows 10 Pro
Lazarus 3.99 (rev cbfd80ce39)

madref

  • Hero Member
  • *****
  • Posts: 1085
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
Re: LazReport setting frame line
« Reply #1 on: September 13, 2023, 05:31:51 pm »
i have been looking at the file itself and how it's build.
Found this out
Code: [Select]
          <Frames>
            <FrameColor Value="0"/>
            <FrameStyle Value="frsSolid"/>
            <FrameWidth Value="1"/>
            <FrameBorders Value="frbLeft,frbTop,frbRight,frbBottom"/>
            <Restrictions Value=""/>
          </Frames>
when I try to set this in the script of the memo I get errors
it has to be something like:
Code: [Select]
Frames.FrameBorders.........I just can't figure it out what it has to be exactly


can anyone help me?
« Last Edit: September 13, 2023, 05:34:17 pm by madref »
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Main Platform:
--------------
Mac OS X Sonoma 14.7
Lazarus 3.99 (Lazarus 3.99 (rev main_3_99-2668-g6b352d830e) FPC 3.3.1 x86_64-darwin-cocoa)

Windows 10 Pro
Lazarus 3.99 (rev cbfd80ce39)

madref

  • Hero Member
  • *****
  • Posts: 1085
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
Re: LazReport setting frame line
« Reply #2 on: September 14, 2023, 12:25:11 am »
After lots of experimenting I finally found the solution
Code: [Select]
Frames := 'frbBottom';
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Main Platform:
--------------
Mac OS X Sonoma 14.7
Lazarus 3.99 (Lazarus 3.99 (rev main_3_99-2668-g6b352d830e) FPC 3.3.1 x86_64-darwin-cocoa)

Windows 10 Pro
Lazarus 3.99 (rev cbfd80ce39)

 

TinyPortal © 2005-2018