Report Writer : how customize the tableblock?

how customize the tableblock ?
can i specify the height of a row ?
can i specify the align in a cell (left, center, right) ?

 
<TableBlock colWidths = "1000,1100,5000,2950" tableWidth = "15500" alignment = "right">
				<TableRow>
					<TableCell leftBorderEnable = "false" rightBorderEnable = "false" color = "230, 230, 230">
						<StaticText content = "Version" style = "Column header 1"/>
					</TableCell>
					<TableCell leftBorderEnable = "false" rightBorderEnable = "false" color = "230, 230, 230">
						<StaticText content = "Date" style = "Column header 1"/>
					</TableCell>
					<TableCell leftBorderEnable = "false" rightBorderEnable = "false" color = "230, 230, 230">
						<StaticText content = "Comments" style = "Column header 1"/>
					</TableCell>
					<TableCell leftBorderEnable = "false" rightBorderEnable = "false" color = "230, 230, 230">
						<StaticText content = "Authors" style = "Column header 1"/>
					</TableCell>
				</TableRow>
				<TableRow>
					<TableCell leftBorderEnable = "false" rightBorderEnable = "false">
						<StaticText content = "" style = "Table Contents"/>
					</TableCell>
					<TableCell leftBorderEnable = "false" rightBorderEnable = "false">
						<StaticText content = "" style = "Table Contents"/>
					</TableCell>
					<TableCell leftBorderEnable = "false" rightBorderEnable = "false">
						<StaticText content = "" style = "Table Contents"/>
					</TableCell>
					<TableCell leftBorderEnable = "false" rightBorderEnable = "false">
						<StaticText content = "" style = "Table Contents"/>
					</TableCell>
				</TableRow>
	 </TableBlock>
 

Hi user,

Thanks for your post. I’ll check with our engineers and come back to you once I got any feedback. At the mean time, if you have any inquiry, please do not hesitate to have a post.

Best regards,
Lilian Wong

Hi user,

For alignment, you can add alignment=“right” on <StaticText …>, but please note that if StaticText has set style=“xxx”, the style’s alignment will overwrite the alignment=“xxx”

Here are 2 ways to resolve this problem:

  1. do not set style=“xxx”, but the font will lose as well
  2. customize your own style in OpenOffice (Report Writer) with alignment settings, and then set the new style into <StaticText…>
    More details of customizing new style for alignment, please refer to the following flash movie:
    http://files2.visual-paradigm.com/FlashDemo/ReportWriter/customize_style_alignment.htm

For specifying row height, we enhanced to support it in our latest patch, which you can downloaded from:
http://files2.visual-paradigm.com/200901/Patch/sp1_20081230r/VP_Suite_Windows_3_4_sp1_20081230r.exe

When you add @height for <TableRow…>, you will get the customized height in your table. If you do not define height, the row height will auto fit to content.

If there is any further inquiry, please feel free to ask.

Best regards,
Lilian Wong

define_height.png

we have a style tag, a alignment tag
do we have a font tag ?

Thanks

[quote=LilianWong]Hi user,

For alignment, you can add alignment=“right” on <StaticText …>, but please note that if StaticText has set style=“xxx”, the style’s alignment will overwrite the alignment=“xxx”

Here are 2 ways to resolve this problem:

  1. do not set style=“xxx”, but the font will lose as well
  2. customize your own style in OpenOffice (Report Writer) with alignment settings, and then set the new style into <StaticText…>
    More details of customizing new style for alignment, please refer to the following flash movie:
    http://files2.visual-paradigm.com/FlashDemo/ReportWriter/customize_style_alignment.htm

For specifying row height, we enhanced to support it in our latest patch, which you can downloaded from:
http://files2.visual-paradigm.com/200901/Patch/sp1_20081230r/VP_Suite_Windows_3_4_sp1_20081230r.exe

When you add @height for <TableRow…>, you will get the customized height in your table. If you do not define height, the row height will auto fit to content.

If there is any further inquiry, please feel free to ask.

Best regards,
Lilian Wong[/quote]

Thanks a lot

an other question : how paint a line on two ?
ex :
first line : blue
second : red
third : blue
4th : red
etc …
(and the line 0 in an other : green; this line corresponds to the name of the columns)

[quote=LilianWong]Hi user,

For alignment, you can add alignment=“right” on <StaticText …>, but please note that if StaticText has set style=“xxx”, the style’s alignment will overwrite the alignment=“xxx”

Here are 2 ways to resolve this problem:

  1. do not set style=“xxx”, but the font will lose as well
  2. customize your own style in OpenOffice (Report Writer) with alignment settings, and then set the new style into <StaticText…>
    More details of customizing new style for alignment, please refer to the following flash movie:
    http://files2.visual-paradigm.com/FlashDemo/ReportWriter/customize_style_alignment.htm

For specifying row height, we enhanced to support it in our latest patch, which you can downloaded from:
http://files2.visual-paradigm.com/200901/Patch/sp1_20081230r/VP_Suite_Windows_3_4_sp1_20081230r.exe

When you add @height for <TableRow…>, you will get the customized height in your table. If you do not define height, the row height will auto fit to content.

If there is any further inquiry, please feel free to ask.

Best regards,
Lilian Wong[/quote]

Hi user,

Thanks for replying. About how to paint the text with pair color, we enhanced to support rowBackgroundColor for <TableBlock …> and backgroundColor for <TableRow …>. Please download and install the latest patch in the following link to access the enhancement.

http://files2.visual-paradigm.com/200902/Patch/sp1_20081230v/VP_Suite_Windows_3_4_sp1_20081230v.exe

For how to configure the background color, please refer to the 2nd image.

And Font is included in Style (please see the 1st image below), you can customize the default style in the Style settings.
Alternatively, you can configure your own style and apply it to your document. Details can be found from the following flash movie:
http://files2.visual-paradigm.com/FlashDemo/ReportWriter_customize_doc_style.htm

Hope these help.

Best regards,
Lilian Wong

background_color.png
font_tag.png

Hi,

I try to do what is explained in your sample, but it doesn’t work on my report writer :frowning:

It seems that the rowBackgroundColors doesn’t work :frowning:
Could you please help me to solve the problem?
I post the code that I wrote.

Thanks in advance!

Hi user,

Thanks for replying. You are using incorrect color code “#COCOCO, #EOEOEO”.
It should be “#C0C0C0, #E0E0E0” (should be “zero” instead of “O”).

Best regards,
Lilian Wong

Hi Lilian!

Ups… It works now, I didn’t install the right patch :frowning:

Thanks for your precious help

Hi user,

You are welcome. Have a nice day!

Best regards,
Lilian Wong