StimVinsh / xdocreport

Automatically exported from code.google.com/p/xdocreport
0 stars 0 forks source link

Not able to write values with package for pptx version 0.9.7 #131

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Create java project or web project with package for pptx version 0.9.7 like 
tutorial instructions
2. Input field in pptx doc: $project.Name
3. Output like this: model.Project@56a75737.Name

What is the expected output? 
XDocreport, like this tutorial instructions.

What do you see instead?
model.Project@56a75737.Name

What version of the product are you using? 
pptxandvelocity-0.9.7-sample.zip

On what operating system?
Ubuntu linux 12.04 64bits, and pptx docs in ms-word 2007, win7 64bits.  

Please provide any additional information below.
I followed the instructions like tutorial for pptx docs.

Angelo, write in mailing list:

Hi  Rodney ,

I have seen quicly your PPTX and it's a XDocReport bug. Your pptx split your 
$project.Name into several a:r elements : 

-------------------------------------------------
<a:r>
  <a:rPr lang="pt-BR" dirty="0" smtClean="0" />
  <a:t>$</a:t>
</a:r>
<a:r>
  <a:rPr lang="pt-BR" dirty="0" err="1" smtClean="0" />
  <a:t>project</a:t>
</a:r>
<a:r>
  <a:rPr lang="pt-BR" dirty="0" smtClean="0" />
  <a:t>.</a:t>
</a:r>
<a:r>
  <a:rPr lang="pt-BR" dirty="0" err="1" smtClean="0" />
  <a:t>Name</a:t>
</a:r>
-------------------------------------------------

I have managed only 2 levels of a:r (you have 4 levels of a:r).
Could you creat ean issue at http://code.google.com/p/xdocreport/issues/list 
for that (and add your Java code +pptx please) but I don't know when I will 
have time to fix this problem.

If you avoid having problem, I suggest you to use simple syntax like this : 

$projectName and put in the context :

context.put("projectName", project.getName())

Regards Angelo

Original issue reported on code.google.com by rod...@unifor.br on 10 Jul 2012 at 11:42

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by angelo.z...@gmail.com on 10 Jul 2012 at 11:50