How to suppress empty space if memo is empty - fastreport

I have a report that display some text fields one of them is a blob field I display it in TfrxMemoView but sometimes that blob field is empty so I dont want the TfrxMemoView to take any empty space in the printed page, in other words how to suppress the empty space when blob field is empty ?
I am using Fast Report VCL.

Place TfrxMemoView on the separate Child stretched band and show/hide this band in the script depend of your blob field content

Related

In a PDF, How to auto populate one field using other field text?

I have a 54 pages PDF file. In this PDF, I have some fields like Full Name, the Phone number, etc that repeats more than 10 times. How can do like When I enter Full name one time and all of the remaining full name fields can be filled automatically using Adobe Acrobat?
I hope I asked my question clearly. Thank you for your time and help.
The easiest is, when all properties of the field (font type, size, color, etc.) are the same, to simply copy the field to the other pages.
The field value is a so-called field level property, which will be the same for all instances of the field.
If you want to have only one place where the value can be entered, and the dependent fields should be read-only, you would have to have a different name for the entry field and display fields. In the entry field, you would then add the following line of code in either the Format or onBlur event:
this.getField("myDisplayFields").value = event.value ;
And that should push the value from the entry field to all fields named myDisplayFields.
And that's it…

Crystal Report display collapse when one field allow can grow

My crystal report display not in correct format when I allow one field of it to "Can Grow".
Before allow "Can Grow" :
After Allow :
So how to solve the problem?
Here is what I have set :
Last edit:
Or try this.
Create a text Object.
Insert all your fields in that text Object base in your order.
How to insert? Cut the field then edit text object then paste.
Then in the properties of text object check the Suppress Embedded
Field Blank Line.
Then You can check also if you want the Can grow of text object
This is the Sample Output inside the Textobject
And the output is this
Cotabato to House is the Company name.
Sinsuat to Philippines is the Address.
Then Numbers is the contact.
They compres because i shorten the size of textobject so that they will execute the funtion of can grow
Your Output must be like this. hmmm
Your Final Output must be like this. No more '[' or ']' that can be seen inside the textobject.
Data was just Sample
If it's possible for you, you can create a section just for this field.
If you put your field which can grows and take 2, 3 or more lines in it's own section it will display all the lines but keep it separate from the other fields.
And in the case that it has one line the display will be like you want as well.
Edit : Advantage of this method : you can create a formula in the suppress formula of this new section, like if your text is null or empty, just suppress the section. Like that you can win some space in your report
Regards,

C - GtkTextBuffer text with tag to gchar

I am currently learning about GTKTextTags and the application to GtkTextView and GtkTextBuffer. I did notice this question but was not looking to export my data to a rich text file which I understood to be the main purpose of the question
I have an application which stores the contents of a GtkTextBuffer into a TEXT field of a SQLITE3 database. Having read the GtkTextWidget Overview and the documentation on GtkTextTag, I (mistakenly) understood that the tag system worked much like a mark up language such as XML/HTML.
I was under the impression (after setting the &start and &end GtkTextIters) when I called gtk_text_buffer_get_text (...) with gboolean include_hidden_chars set to TRUE I would essentially obtain a gchar* that would also include GtkTextTags so the string might look like <b>some text</b> (but obviously with GtkTextTag formatters not HTML). I realise now this is not the case.
Problem: I store the gchar* obtained from gtk_text_buffer_get_text(...) into the database TEXT field. At a later time, or when I reopen the application, I want to reload this data into the GtkTextBuffer and do so by retrieving the relevant TEXT field data from my database and setting text with gtk_text_buffer_set_text (...). At this point I discover all of the formatting tags are gone and formatting somewhat becomes moot. What I would like to be able to do is store the text from the GtkTextBuffer into the TEXT field of the database and when it reloads the formatting is retained.
Q: Is there a way to store both text and tags from a GtkTextBuffer into a SQLITE3 database so that when reloading this text to the GtkTextBuffer formating is retained?
I had considered using a BLOB field rather than a TEXT field in the database but was uncertain if there is a better way to achieve what I am after.
I would suggest using gtk_text_buffer_register_serialize_tagset() and then gtk_text_buffer_serialize() to get a byte array (guint8[]) that you can then read back into another text buffer later with gtk_text_buffer_deserialize().
I think you will have to use a BLOB field rather than TEXT, since the return value of gtk_text_buffer_serialize() is a byte array rather than a string.

Adding a enumerated list as content control and binding data in MS docx

I have a content control field as 1 of the items in a enumerated list. How can I add further items (unknown number of items) to the list so that the item number gets incremented?
For eg this is the MS Word formatted enumerated list:
a) A sentence item.
b) <controlFieldItem>
The binding to Content control is done first with Word Content toolkit, then I use CustomXMLPart to replace template xml with data.
If I insert data using XML binding to the content control () the item is there. But I would like to able to add more items and the numbering to increment.
I think if if insert newline/return characters after each item to add in that field then the field will just have a new line within the item rather than create a new item in the list.
I could not find any list based content control fields, do these exist? How would I achieve this? Is it possible with Open XML library? Already using asp.net library to replace custom XML.

Trim node inside views

I have a view (Drupal 7), filled with nodes. And I got a trimmer on 200 chars on the body. But as it happens, somethimes a word is cut in half. How do I get to trimm Drupal on words in stead of chars?
Inside the Rewrite results field options and underneath the checkbox entitled Trim this field to a maximum length make sure the checkbox entitled Trim only on a word boundary is selected.

Resources