Re: [libreoffice-users] Problem with text formatting in Report.

2019-05-16 Thread Girvin Herr
On 5/16/19 11:12 AM, Johnny Rosenberg wrote: Den tors 16 maj 2019 kl 00:22 skrev Girvin Herr : Greetings, I am using LibreOffice 5.3.4.2 on Slackware Linux 14.2 (K4.4.75). I have a database with a text field which may or may not be null. What I want to do is to prefix a dash "-" before the

Re: [libreoffice-users] Problem with text formatting in Report.

2019-05-16 Thread Robert Großkopf
Hi Girvin, the Report-Builder should better get this information from the view, which is datasource of the report. All what could be done through SQL before submitting the data to the report will work faster (and mostly better). You have to write in SQL SELECT '-'||"text" FROM "table" This will

Re: [libreoffice-users] Problem with text formatting in Report.

2019-05-16 Thread Johnny Rosenberg
Den tors 16 maj 2019 kl 00:22 skrev Girvin Herr : > Greetings, > > I am using LibreOffice 5.3.4.2 on Slackware Linux 14.2 (K4.4.75). > > I have a database with a text field which may or may not be null. What I > want to do is to prefix a dash "-" before the text if the text field is > not null.

Re: [libreoffice-users] Problem with text formatting in Report.

2019-05-16 Thread Girvin Herr
Remy, Greetings. I tried your suggestion, but it didn't work as expected. LO Report Builder did replace "[<>""]-@" with "[<>0]-@;General", similar to what you experienced. However, the result is strange and almost indeterminate. Sometimes if the text field is alpha-numeric, the result is "-"

Re: [libreoffice-users] Problem with text formatting in Report.

2019-05-15 Thread Remy Gauthier
Greetings, I tried this in calc (which I am assuming you are using), and it seems to work for what you describe: [<>""]-@ The interesting thing is that calc changed it afterwards to [<>0]-@;Standard but it still seems to work. I hope this helps. Rémy. Le mercredi 15 mai 2019 à 15:17 -0700,

[libreoffice-users] Problem with text formatting in Report.

2019-05-15 Thread Girvin Herr
Greetings, I am using LibreOffice 5.3.4.2 on Slackware Linux 14.2 (K4.4.75). I have a database with a text field which may or may not be null. What I want to do is to prefix a dash "-" before the text if the text field is not null. At first, I tried this format: ;;;"-"@ Somewhere, not by