summaryrefslogtreecommitdiff
path: root/report/xml_report.rb
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2010-05-18 12:09:05 +0200
committermguetlein <martin.guetlein@gmail.com>2010-05-18 12:09:05 +0200
commit0522e88ac854e573916653cba92a76f1faa47191 (patch)
tree966454d3619c8e21b7d977e28347f42a33d3eeb9 /report/xml_report.rb
parent6894b1ca551a8a1d430a3212311e7fe8cadc03b3 (diff)
some report design changes, reload when creating validation
Diffstat (limited to 'report/xml_report.rb')
-rw-r--r--report/xml_report.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/report/xml_report.rb b/report/xml_report.rb
index f1980a8..a477cd8 100644
--- a/report/xml_report.rb
+++ b/report/xml_report.rb
@@ -91,7 +91,9 @@ module Reports
figure << Reports::XMLReportUtil.text_element("title", title)
media = Element.new("mediaobject")
image = Element.new("imageobject")
- imagedata = Reports::XMLReportUtil.attribute_element("imagedata",{"contentwidth" => "100%", "fileref" => path, "format"=>filetype})
+ imagedata = Reports::XMLReportUtil.attribute_element("imagedata",
+ {"fileref" => path, "format"=>filetype, "contentwidth" => "6in", "contentdepth"=> "4in"
+ })#"width" => "6in", "height" => "5in"}) #"contentwidth" => "100%"})
#imagedata = Reports::XMLReportUtil.attribute_element("imagedata",{"width" => "6in", "fileref" => path, "format"=>filetype})
@resource_path_elements[imagedata] = "fileref"
image << imagedata
@@ -113,7 +115,7 @@ module Reports
values = transpose ? table_values.transpose : table_values
- table = Reports::XMLReportUtil.attribute_element("table",{"frame" => "top", "colsep" => 0, "rowsep" => 0})
+ table = Reports::XMLReportUtil.attribute_element("table",{"frame" => "none", "colsep" => 1, "rowsep" => 1 })
table << Reports::XMLReportUtil.text_element("title", title)