Recent

Author Topic: Lazreport and text elements.  (Read 5382 times)

mrdebug

  • Full Member
  • ***
  • Posts: 160
Lazreport and text elements.
« on: November 06, 2015, 08:41:40 am »
Hi, I have groups of 2 fields to print. Each group has a text field and a integer value (The text is notes and the integer is the total working hours).
The problem is that I don't know how many rows the text will be. Maybe 1 - 2- 10 ... and I want the integer field at the end of the text.
I have tried in many way but the only way that I found is to print each group in a page.
Is there another way?

balazsszekely

  • Guest
Re: Lazreport and text elements.
« Reply #1 on: November 06, 2015, 09:04:21 am »
Concatenate the text and the integer to a string. Assign the string to a memo. Set the memo and the band Stretched property to True.

mrdebug

  • Full Member
  • ***
  • Posts: 160
Re: Lazreport and text elements.
« Reply #2 on: November 06, 2015, 09:19:40 am »
No other way?
Is possible to print in html?

balazsszekely

  • Guest
Re: Lazreport and text elements.
« Reply #3 on: November 06, 2015, 09:31:43 am »
Quote
No other way?
What is wrong with the solution I gave it to you? The memo will increase the vertical size to accommodate the text. According to your original post this is exactly what you need.

Quote
Is possible to print in html?
No. Not directly. There is a lazreportpdfexport package though. So a pdf export it is possible, but you still have to display the text correctly in the preview. That's why you need a memo with stretched property set to true.

mrdebug

  • Full Member
  • ***
  • Posts: 160
Re: Lazreport and text elements.
« Reply #4 on: November 06, 2015, 09:37:56 am »
My idea is not to display only a value after the text but a table with 3 rows.

balazsszekely

  • Guest
Re: Lazreport and text elements.
« Reply #5 on: November 06, 2015, 09:46:06 am »
Quote
My idea is not to display only a value after the text but a table with 3 rows.
Then put the expanding memo to a master detail band and the table with the 3 rows to a master footer. There is no table available on lazreport but you can simulate one with 3 memos, by setting the Frames and/or the Frame Colors.  You can also draw lines if you like.

 

TinyPortal © 2005-2018