Output2 - Options / 90° cell rotation [message #7361] |
Mon, 30 September 2019 09:55  |
htManager
Messages: 455 Registered: May 2014
|
Senior Member |
|
|
Can I rotate the cell values? I try to explain it with the next lines:
........| | | | | |
Line 1 x x x o x o
Line 2 x o x x x o
...
The pipes are the headings 90° rotated. So I could generate my (Pivot-table) report on one page.
[Updated on: Mon, 30 September 2019 09:55] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Output2 - Options / 90° cell rotation [message #7394 is a reply to message #7383] |
Sat, 14 December 2019 07:23   |
htManager
Messages: 455 Registered: May 2014
|
Senior Member |
|
|
At the moment I can create the report header as I wanted as you can see in the attached screen shot.
My problem now is that I have the same value in all coloumns.
In the cm_formatData() method I can collect the data for the row by an array. But how to send them to the report? Is there a possibility such as for the header columns like "$this->dynamic_column_headings = array('id' => 'whatever');"?
But I think I do not know how it definitely works. In my report body there is always the same field specified. So it should be always the same value....
$structure['body']['fields'][] = array('spiele_anwesenheit_status' => '%%2');
$structure['body']['fields'][] = array('spiele_anwesenheit_status' => '%%3');
$structure['body']['fields'][] = array('spiele_anwesenheit_status' => '%%4');
$structure['body']['fields'][] = array('spiele_anwesenheit_status' => '%%5');
[Updated on: Sat, 14 December 2019 09:59] Report message to a moderator
|
|
|
|
Re: Output2 - Options / 90° cell rotation [message #7396 is a reply to message #7395] |
Tue, 31 December 2019 12:23   |
htManager
Messages: 455 Registered: May 2014
|
Senior Member |
|
|
I finally got the result that I want. I attached a report. Now there is one thing left which I want to correct. If I generate the names for the heading with "\n" I have problems with the sequence ma. It seems that m . "\n" will cause an empty row as you can see in the report. The other problem are the german characters ä, ö, ü. Can you give me a hint how I can deal with this?
I actually have this code:
for ($sp=0; $sp<$stringlaenge; $sp++)
{
$spielernameoutput = $spielernameoutput . substr($spielername, 0, 1) . "\n";
$spielername = substr($spielername, 1, $stringlaenge - $sp);
}
[Updated on: Tue, 31 December 2019 12:30] Report message to a moderator
|
|
|
|
Re: Output2 - Options / 90° cell rotation [message #7398 is a reply to message #7397] |
Thu, 02 January 2020 03:50   |
htManager
Messages: 455 Registered: May 2014
|
Senior Member |
|
|
I use Times for the column headings.
Here is the pdf.styles.inc entry:
$style['hdg_anwesenheit']['font'] = array('family' => 'Times', // Courier, Helvetica, Times
'style' => '', // blank=Regular, B=Bold, I=Italic, U=Underline
'size' => 9, // size in points
'height' => 3.9, // line height in units
'draw' => .3, // width of drawn lines
'overflow' => y, // overflow
'border' => '1', // position of border lines
'halign' => 'left'); // horizontal text alignment (left, right, center)
|
|
|
|
|
|
|
|
|
|
|