StimVinsh / xdocreport

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

Not able to write the values in a PPTX table using velocity #122

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Steps to reproduce the problem:
In your Project and Developers demo example, if I change the 2nd slide to have 
the developer name and email in a table instead of the List, it does not work.
1. Modify the pptx file as the one attached
2. Use the FieldsMetadata as specified in the demo example
3. run the code again

What is the expected output? Expecting the developers table to be filled in by 
the actual values.
What do you see instead? The velocity placeholders remain unchanged and are not 
replaced by actual values.

What version of the product are you using? using xdocreport 0.9.7 
On what operating system? Windows XP.

Please provide any additional information below.

Original issue reported on code.google.com by saurabhj...@gmail.com on 18 Jun 2012 at 3:19

Attachments:

GoogleCodeExporter commented 8 years ago
Hi,

PPTX is for the moment very simply and it manages only what you can read on the 
wiki at http://code.google.com/p/xdocreport/wiki/PPTXReportingJavaMainListField

So the table are not manages with PPTX. 
PPTX should be a lot improved (like manage loop for slider, etc...)

Any contributions are welcome!

Regards Angelo

Original comment by angelo.z...@gmail.com on 18 Jun 2012 at 3:24

GoogleCodeExporter commented 8 years ago
Hi Angelo
Is there a workaround to achieve this functionality?

Thanks
Saurabh

Original comment by saurabhj...@gmail.com on 18 Jun 2012 at 6:53

GoogleCodeExporter commented 8 years ago
Hi Saurabh,

>Is there a workaround to achieve this functionality?
Today, the only loop whish is managed is with bulleted list : 
http://code.google.com/p/xdocreport/wiki/PPTXReportingJavaMainListInBulletedList
I don't know if it can be helpfull for you?

As soon as I will have time, I will try to implement loop for table. The big 
problem with PPTX is that you cannot use mergefield and it's very hard to 
detect the velocity field name that XDocReport must change to manage loop.

I have developped PPTX for manage my need (just need bulleted list and replace 
simple field), but don't hesitate to create issue with your need (ex: loop for 
slide, manage image, etc...). After that we could plan to develop the new PPTX 
features (just find time to do that).

Regards Angelo

Original comment by angelo.z...@gmail.com on 19 Jun 2012 at 7:45

GoogleCodeExporter commented 8 years ago
Thanks Angelo,
One more thing, let's say I don't even want to loop through the fields inside 
the table on the pptx, but want to just assign some values to something that 
was formatted in a table and does not have repeating records. Can that be 
accomplished with the current implemenation? I just want a way to write the 
data to the pptx table and not loop through it.

Original comment by saurabhj...@gmail.com on 19 Jun 2012 at 3:45

GoogleCodeExporter commented 8 years ago
Hi Saurabh,

You mean that you wish a case like this : 

-------------------------------
 $valA         |     $valB
-------------------------------
 $valC         |     $valD
-------------------------------

And replace $valA, ...$valD with some values.

Yes it's possible. 

Regards Angelo

Original comment by angelo.z...@gmail.com on 20 Jun 2012 at 7:49

GoogleCodeExporter commented 8 years ago
Hi Angelo
Yes, I mean that. How can the above be achieved with the existing code? Could 
you please give me an example?

Thanks
Saurabh

Original comment by saurabhj...@gmail.com on 20 Jun 2012 at 11:27

GoogleCodeExporter commented 8 years ago
I mean that it's simple field liek explained here 
http://code.google.com/p/xdocreport/wiki/PPTXReportingJavaMain

But I have never tested when field is in a table.

Regards Angelo

Original comment by angelo.z...@gmail.com on 20 Jun 2012 at 12:34

GoogleCodeExporter commented 8 years ago
Hi Angelo
I tried that, but it does not work inside the tables.

Thanks
Saurabh

Original comment by saurabhj...@gmail.com on 22 Jun 2012 at 8:06

GoogleCodeExporter commented 8 years ago
Hi Saurabh,

Could you attach your pptx+java code (main+pojo) please.

Many thank's.

Regards Angelo

Original comment by angelo.z...@gmail.com on 24 Jun 2012 at 10:46

GoogleCodeExporter commented 8 years ago
Hi Angelo
Attached is the code for the same. In the output .pptx file the values are not 
getting replaced in the grid, however they are replaced in the text field.

Thanks
Saurabh

Original comment by saurabhj...@gmail.com on 25 Jun 2012 at 3:35

Attachments:

GoogleCodeExporter commented 8 years ago
Hi Angelo
Did you get a chance to look in this issue? Do you have a way to save the data 
in a grid with the current available version?

Thanks
Saurabh

Original comment by saurabhj...@gmail.com on 28 Jun 2012 at 3:51

GoogleCodeExporter commented 8 years ago
Hi Saurabh,

I will try to see your problem for the next release 0.9.8 which will be created 
soon. But I don't promise you (just find time for that, because I must finish 
our SOAP/REST ResourcesService).

Regards Angelo

Original comment by angelo.z...@gmail.com on 29 Jun 2012 at 7:29

GoogleCodeExporter commented 8 years ago
Hi Saurabh,

I have fixed the problem and commited my work on Git. It will be available on 
0.9.8. For the moment you can build the project or use 0.9.8 SNAPSHOT with 
maven.

Regards Angelo

Original comment by angelo.z...@gmail.com on 29 Jun 2012 at 3:46

GoogleCodeExporter commented 8 years ago

Original comment by angelo.z...@gmail.com on 8 Jul 2012 at 8:21