hyunsikki / xdocreport Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/xdocreport
Automatically exported from code.google.com/p/xdocreport
What steps will reproduce the problem?
1. Create Java Project in Eclipse with Class DocxProjectWithVelocity2PDF
2. Adding all jar's corresponding to
http://code.google.com/p/xdocreport/wiki/DocxReportingJavaMainConverter
3. Saving and run class DocxProjectWithVelocity2PDF will provide the error
What is the expected output? What do you see instead?
PDF File --> DocxProjectWithVelocity_Out.pdf
What version of the product are you using? On what operating system?
- fr.opensagres.xdocreport.samples.docxandvelocity.converters-0.9.1
- plus iText-5.0.6.jar
- I tried with jre 1.5.0, 1.6.0 and 1.6.07
Please provide any additional information below.
Here is the fully error message from the console
fr.opensagres.xdocreport.converter.XDocConverterException:
java.lang.NoClassDefFoundError: com/lowagie/text/Element
at fr.opensagres.xdocreport.document.AbstractXDocReport.convert(AbstractXDocReport.java:570)
at fr.opensagres.xdocreport.samples.docxandvelocity.DocxProjectWithVelocity2PDF.main(DocxProjectWithVelocity2PDF.java:39)
Caused by: java.lang.NoClassDefFoundError: com/lowagie/text/Element
at org.apache.poi.xwpf.converter.itext.XWPF2PDFViaITextConverter.doConvert(XWPF2PDFViaITextConverter.java:52)
at org.apache.poi.xwpf.converter.itext.XWPF2PDFViaITextConverter.doConvert(XWPF2PDFViaITextConverter.java:37)
at org.apache.poi.xwpf.converter.internal.AbstractXWPFConverter.convert(AbstractXWPFConverter.java:42)
at fr.opensagres.xdocreport.converter.docx.poi.itext.XWPF2PDFViaITextConverter.convert(XWPF2PDFViaITextConverter.java:61)
at fr.opensagres.xdocreport.document.AbstractXDocReport.convert(AbstractXDocReport.java:544)
... 1 more
Caused by: java.lang.ClassNotFoundException: com.lowagie.text.Element
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 6 more
Original issue reported on code.google.com by [email protected]
on 16 Sep 2011 at 2:48
[deleted issue]
Develop an MS Word macro which give you the capability to display in a dialog
box the fields name that you can use for teh report. When ou click on the
field, it insert you a mergefield in the document.
This idea follow the same than RTFTemplate :
like http://rtftemplate.sourceforge.net/userguide/design-rtfmodel/msword.html
Original issue reported on code.google.com by [email protected]
on 4 May 2011 at 1:20
Develop Tools to load and save FieldsMetada :
1) Load FieldsMetada
1.1) Load FieldsMetada from XML
Ex:
-----------------------------
<fields>
<field name="developers.Name" type="list" />
...
-----------------------------
-----------------------------
FieldsMetada metadata = new FieldsMetada();
InputStream xmlSource = .....
metadata.load(xmlSource);
-----------------------------
will be the same thing than:
-----------------------------
FieldsMetada metadata = new FieldsMetada();
metadata.addFieldAsList("developers.Name");
-----------------------------
1.2) Load FieldsMetada from Java model
-----------------------------
FieldsMetada metadata = new FieldsMetada ();
metada.load("developers", Collection<Developer>.class);
-----------------------------
will be the same thing than:
-----------------------------
FieldsMetada metadata = new FieldsMetada();
metadata.addFieldAsList("developers.Name");
-----------------------------
2) Save FieldsMetada
Serialize FieldsMetada in a XML.
Original issue reported on code.google.com by [email protected]
on 14 Sep 2011 at 12:10
What steps will reproduce the problem?
1. Choose DocxBig.docx on
http://xdocreport.opensagres.cloudbees.net/processReport.jsp
2. Then Choose conversion "To PDF via iText"
What is the expected output? What do you see instead?
The result is a Java Exception
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 26 Oct 2011 at 1:59
Develop an OppenOffice macro which give you the capability to display in a
dialog box the fields name that you can use for the report. When you click on
the field, it insert you an input field in the document.
This idea follow the same than RTFTemplate :
like http://rtftemplate.sourceforge.net/userguide/design-rtfmodel/msword.html
Original issue reported on code.google.com by [email protected]
on 4 May 2011 at 1:23
It's impossible to insert Hyperlink in a ODT, Docx document with
Velocity/Freemarker syntax
Original issue reported on code.google.com by [email protected]
on 1 Aug 2011 at 2:46
[deleted issue]
Create a SWT Text with toolbar button (Bold, Italic, ...) to manage wiki syntax
(no preview for the moment). The button of the toolbar can be used to add for
instance to add ''' characters between selecetd text to bold text with
Mediawiki syntax.
This widget is created in
http://code.google.com/p/xdocreport/source/browse/commons/fr.opensagres.eclipse.
forms/src/fr/opensagres/eclipse/forms/widgets/SimpleWikiText.java?repo=eclipse
and i sused in
http://code.google.com/p/xdocreport/source/browse/commons/fr.opensagres.eclipse.
forms.samples/src/fr/opensagres/eclipse/forms/samples/editor/OverviewPage.java?r
epo=eclipse
Original issue reported on code.google.com by [email protected]
on 21 Oct 2011 at 12:54
Develop some tools for XDocReport like :
* generate list of report with a simple SQL (select * from user).
* generate fieldsmetadata XML from a context by using reflection.
* other?
Original issue reported on code.google.com by [email protected]
on 29 Aug 2011 at 8:57
What steps will reproduce the problem?
1> Consider below table
Hdr1 Hdr2
Test Alias1
Alias2
Alias3
Test2 Alias4
Alias5
Alias6
The requirement is to have Alias1, Alias2 and Alias3 in the same cell but well
formatted. Since Alias1 2 and 3 are already part of list field, how to populate
a list within a list?
What version of the product are you using? - 0.9.0
On what operating system? windows and linux
Original issue reported on code.google.com by [email protected]
on 12 Aug 2011 at 6:33
Attachments:
Instead of relying on properties file for implementation classes, it would be
great to use the standard lookup mechanism as defined by the JAR File
specification:
http://download.oracle.com/javase/1.3/docs/guide/jar/jar.html#Service%20Provider
You may use the following class to lookup implementations of an interface if
you need to maintain backward compatibility with JDK 5:
http://download.oracle.com/javase/6/docs/api/javax/imageio/spi/ServiceRegistry.h
tml
Original issue reported on code.google.com by [email protected]
on 28 Jul 2011 at 8:56
Hi,gays
«[#list developers as developer]»
«${developer.name}»
${developer.mail} --->here is the href
«[/#list]»
When I write this in the word template.The href can't change in the out put file
Give me some idea.
Thanks
Original issue reported on code.google.com by [email protected]
on 2 Sep 2011 at 12:27
Attachments:
When using freemarker and a docx template the " characters in the merge field
are escaped to \" resulting in a parse exception:
freemarker.core.ParseException: Token manager error:
freemarker.core.TokenMgrError: Lexical error at line x, column y. Encountered:
"\"" (34), after : "\\" in
fr.opensagres.xdocreport.document.docx.DocXReport@18e2b22!word/document.xml
[#if project.numberAsInt = 1]one[#else]not one[/#if] - Works fine
[#if project.numberAsString = "one"]1[#else]not 1[/#if] - Fails
document.xml contains
MERGEFIELD "[#if project.numberAsString == \"one\"]1[#else]not 1[/#if]" \*
MERGEFORMAT
If the " characters are replaced with ' characters in the merge field the
generated document.xml looks OK but there is still a parse exception
freemarker.core.ParseException: Encountered "&" at line...
Original issue reported on code.google.com by [email protected]
on 3 Aug 2011 at 6:17
Vertical alignment is not managed.
Original issue reported on code.google.com by [email protected]
on 9 Mar 2011 at 10:22
Paragraph spaces are not correctly rendered in Word arrays.
Original issue reported on code.google.com by [email protected]
on 9 Mar 2011 at 1:01
We should be able to persist (in a DB for instance) the report.
Reports should be still available after to redeploy of the webapp..
Original issue reported on code.google.com by pascal.leclercq
on 6 Jun 2011 at 9:52
Today it exists IDebuggerLogger. We wish remove this interface to :
1) use directly sfl4j?
2) or use java.util.Logger and implements SFL4J imlementation of
java.util.Logger like CXF.
Original issue reported on code.google.com by [email protected]
on 1 Aug 2011 at 9:47
Today XDocReport WEB Application demo is available
http://xdocreport.opensagres.cloudbees.net/ is developed without JEE Framework
(JSP + Servlet only).
XDocReport wish use Eclipse RAP to transform this JSP WEB Application to
Eclipse RAP WEB Application. The idea is to provide an extensible (with Eclipse
Plug-ins) WEB Application to provides services for reporting (load report,
generate report...).
This extensible application can be extend for instance to create an application
for manage Resume (generate Resume from Database...) like
http://code.google.com/p/dynaresume/
Original issue reported on code.google.com by [email protected]
on 4 May 2011 at 1:14
The datasource is a DB accessed by EJB.
@EJB
Projects projectBean;
would get the handle to the EJB by JEE-Server injection.
With the current implementation of ...ReportDispatcher or ..ReportServlet, the
JEE server can not inject and the handles are null.
Using a simple Servlet, implementing doPost and doGet, injection works fine.
The servlet references the IDocument, see the attached UML with the strategy
pattern.
Original issue reported on code.google.com by [email protected]
on 26 Oct 2011 at 1:14
Attachments:
XDocReport provides sereveral PDF converter (docx->PDF an dodt->PDF) based on
itext and wish gives those converter to Apache Fondation. But for license
reason, itext cannot be accepted by Apache.
http://pdfbox.apache.org/ could be used. I have posted a question on PDFBox
forum at
http://mail-archives.apache.org/mod_mbox/pdfbox-users/201108.mbox/%3CCAKLdLg-9w3
[email protected]%3E
Original issue reported on code.google.com by [email protected]
on 29 Aug 2011 at 8:40
Remove Commons IO dependendies
Original issue reported on code.google.com by [email protected]
on 1 Aug 2011 at 9:45
For the future XDocReport 0.9.2, move XDocReport sources from SVN to Git.
Original issue reported on code.google.com by [email protected]
on 30 Aug 2011 at 9:08
Hi,
before merging document ,I need to check that the template contains all
varaiables passed in the java model context.
if ok : merge.
if not :throw exception.
it's possible ?
Original issue reported on code.google.com by [email protected]
on 20 Jul 2011 at 10:20
[deleted issue]
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 12 Aug 2011 at 3:43
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 12 Aug 2011 at 3:43
Today XDocReport manages simple text from the Java context. (ex: $name is
replaced with a simple text value).
Imagine you have a report with comments section :
--------------------------------------------------------
$comments
--------------------------------------------------------
Today you can just replace $comments with simple text (some text).
--------------------------------------------------------
some text
--------------------------------------------------------
It should be cool, to gives the capaibility to style the text (set bold
charachter with bold style in the report) by using some syntax like HTML,
Google Wiki, WikiPedia, etc
For instance, set the value some _text_ which uses Google Wiki syntax :
--------------------------------------------------------
some text
--------------------------------------------------------
and text will be bolded.
HTML syntax could be interesting when WEB Application use rich textarea like
TyniMCE or FCKEditor.
Original issue reported on code.google.com by [email protected]
on 7 Oct 2011 at 12:41
Hi i am trying to convert odt to pdf, this is error i got.
please give me solution to this.
The Code :
Options options = Options.getFrom(DocumentKind.ODT).to(ConverterTypeTo.PDF);
InputStream in= new FileInputStream(new File("D:/AltranPDF/File.odt"));
try {
OdfDocument document = OdfTextDocument.loadDocument(in);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
// 2) Convert OdfTextDocument to PDF via IText
OutputStream out = new FileOutputStream(new File("D:/4July/ODT.pdf"));
XWPF2PDFViaITextConverter ss = new XWPF2PDFViaITextConverter();
ss.convert(in, out, options);
Please help me.
Caused by: org.apache.poi.POIXMLException:
org.apache.poi.openxml4j.exceptions.InvalidFormatException: Package should
contain a content type part [M1.13]
at org.apache.poi.util.PackageHelper.open(PackageHelper.java:41)
at org.apache.poi.xwpf.usermodel.XWPFDocument.<init>(XWPFDocument.java:112)
at fr.opensagres.xdocreport.converter.docx.poi.itext.XWPF2PDFViaITextConverter.convert(XWPF2PDFViaITextConverter.java:48)
... 1 more
Original issue reported on code.google.com by [email protected]
on 5 Jul 2011 at 8:42
Move XDocReport sources from SVN to Git
Original issue reported on code.google.com by [email protected]
on 3 Aug 2011 at 12:08
Add the capability to set a field $myImage in the doc and replace it with Image
coming from teh XDocReport context.
Original issue reported on code.google.com by [email protected]
on 9 May 2011 at 3:49
Is it possible to include the current page number to a mergefield and then use
it in a function (the aim is to be sure that the final document does not exceed
a number of page).
I tried several way to do it, but I always finish with :
org.apache.velocity.exception.ParseErrorException: Encountered "(" at
fr.opensagres.xdocreport.document.docx.DocXReport@1284f8e!word/document.xml[line
1, column 2024]
Was expecting one of:
<RPAREN> ...
<WHITESPACE> ...
"-" ...
"+" ...
"*" ...
"/" ...
"%" ...
<LOGICAL_AND> ...
<LOGICAL_OR> ...
<LOGICAL_LT> ...
<LOGICAL_LE> ...
<LOGICAL_GT> ...
<LOGICAL_GE> ...
<LOGICAL_EQUALS> ...
<LOGICAL_NOT_EQUALS> ...
Original issue reported on code.google.com by [email protected]
on 20 Oct 2011 at 7:45
See "Effective Java" from Joshua Bloch Item 17 or Item 19 of second edition.
Use Interfaces only to define types and respect the "is a" rule.
If Contants are used by more than one class, rather use a final class to define
those constants and reference it where used. Declare those classes "default"
(package private) to hide as much as possible of the implementation details not
required to be known in th API definition.
Inheriting Constants from an Interface bring them down the whole inherit chain
to classes which may not need them at all, which I find additionally ugly.
Beside, enum are in a lot of cases the better constants. For instance, with the
following snippet, you have localization for free. Content of an enum used by
JSF 2 Select-List:
private static List<SelectItem> statList;
public static List<SelectItem> getItemList(){
return statList;
}
public static String getLocalName(Status actual) {
ResourceBundle rb = ResourceBundle.getBundle("enumKeyWords");
return rb.getString(actual.name());
}
static {
ResourceBundle rb = ResourceBundle.getBundle("enumKeyWords");
List<SelectItem> tmp= new ArrayList<SelectItem>();
Status[] s = Status.values();
for (int i = 0; i < Status.values().length; i++) {
String tag = rb.getString(s[i].name());
SelectItem se = new SelectItem(s[i], tag);
tmp.add(i, se);
}
statList = Collections.unmodifiableList(tmp);
}
Original issue reported on code.google.com by [email protected]
on 3 Oct 2011 at 8:35
Word shapes are not rendered.
Original issue reported on code.google.com by [email protected]
on 9 Mar 2011 at 1:00
Issue created in the http://code.google.com/p/xdocreport/issues/detail?id=29 :
-------------------------------------------------------------------
I have a complex data structure which at its most basic is a list within a
list. Is it possible to add the inner list as a FieldsMetadata element and
loop over the inner list in a table? eg
metadata.addFieldAsList("list.innerlist.data1");
metadata.addFieldAsList("list.innerlist.data2");
Then use the loop functionality to iterate over the first list generating
a table and each inner list generating the rows within each table.
I would also like to be able to generate a table with an unknown number of
columns, repeating over the elements in a list creating a new table cell
for each element. Similar to the row loop functionality but applied to
table cells.
Both of these approaches are possible using the '@' and '@/' notation in
JOD reports, see http://jodreports.sourceforge.net/?q=node/26, but I am
struggling to get the same results using xdoc.
-------------------------------------------------------------------
Original issue reported on code.google.com by [email protected]
on 1 Sep 2011 at 7:11
What steps will reproduce the problem?
1. I would like to create a document (.docx/.odt) from a template where i
display values that come out of a database in a table like in the examples of
DocxProjectWithFreemarkerList.java.
In my specific situation I trigger values from a database query and I get in
return values that can be of any kind of variety.
So I don't want to make a specific object for it (like in the example -
developer) each time I query other data.
2. I've been trying to work arround my problem and I found that when I use
TemplateEngineKind.Velocity I can show my data in the table but not sorted
(because you can't sort a HashMap).
When I try to this with TemplateEngineKind.FreeMarker I get the
freemarker.template.TemplateException: Expected collection or sequence
exception. Because we have chosen for the FreeMarker template engine and I
declare my vars in my template like the FreeMarker syntax I would like to fix
this with FreeMarker.
3. Is there an option to fix this exception and to make the IContext (Map?)
sortable for data?
My way of doing this:
InputStream in = new FileInputStream("test.docx");
IXDocReport report = XDocReportRegistry.getRegistry().loadReport(in, TemplateEngineKind.Freemarker);
// 2) Create fields metadata to manage lazy loop (#forech velocity)
// for table row.
FieldsMetadata metadata = new FieldsMetadata();
metadata.addFieldAsList("developers.name");
metadata.addFieldAsList("developers.lastName");
metadata.addFieldAsList("developers.mail");
report.setFieldsMetadata(metadata);
// 3) Create context Java model
IContext context = report.createContext();
Project project = new Project("Liber");
context.put("project", project);
context.put("developers.0.name", "Stefan");
context.put("developers.0.lastName", "Jans");
context.put("developers.0.mail", "[email protected]");
context.put("developers.1.name", "Bjorn");
context.put("developers.1.lastName", "Ramant");
context.put("developers.1.mail", "[email protected]");
context.put("developers.2.name", "Matthijs");
context.put("developers.2.lastName", "Rozema");
context.put("developers.2.mail", "[email protected]");
context.put("developers.3.name", "Frank");
context.put("developers.3.lastName", "Dijkstra");
context.put("developers.3.mail", "[email protected]");
// 4) Generate report by merging Java model with the Docx
OutputStream out = new FileOutputStream(new File("test_output.docx"));
report.process(context, out);
What is the expected output? What do you see instead?
1-aug-2011 15:02:40 freemarker.log.JDK14LoggerFactory$JDK14Logger error
SEVERE: Template processing error: "Expected collection or sequence. developers
evaluated instead to freemarker.template.SimpleHash on line 2, column 3301 in
fr.opensagres.xdocreport.document.docx.DocXReport@1e97676!word/document.xml."
Expected collection or sequence. developers evaluated instead to
freemarker.template.SimpleHash on line 2, column 3301 in
fr.opensagres.xdocreport.document.docx.DocXReport@1e97676!word/document.xml.
The problematic instruction:
----------
==> list developers as item_developers [on line 2, column 3294 in
fr.opensagres.xdocreport.document.docx.DocXReport@1e97676!word/document.xml]
----------
Java backtrace for programmers:
----------
freemarker.template.TemplateException: Expected collection or sequence.
developers evaluated instead to freemarker.template.SimpleHash on line 2,
column 3301 in
fr.opensagres.xdocreport.document.docx.DocXReport@1e97676!word/document.xml.
at freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:136)
at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:190)
at freemarker.core.Environment.visit(Environment.java:428)
at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.EscapeBlock.accept(EscapeBlock.java:84)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.Environment.process(Environment.java:199)
at fr.opensagres.xdocreport.template.freemarker.FreemarkerTemplateEngine.process(FreemarkerTemplateEngine.java:126)
at fr.opensagres.xdocreport.template.freemarker.FreemarkerTemplateEngine.processWithCache(FreemarkerTemplateEngine.java:78)
at fr.opensagres.xdocreport.template.AbstractTemplateEngine.process(AbstractTemplateEngine.java:88)
at fr.opensagres.xdocreport.template.AbstractTemplateEngine.process(AbstractTemplateEngine.java:66)
at fr.opensagres.xdocreport.document.AbstractXDocReport.processTemplateEngine(AbstractXDocReport.java:593)
at fr.opensagres.xdocreport.document.AbstractXDocReport.process(AbstractXDocReport.java:397)
at fr.opensagres.xdocreport.document.AbstractXDocReport.process(AbstractXDocReport.java:365)
at docxandfreemarker.DocxFreeMarkerLiber.main(DocxFreeMarkerLiber.java:68)
fr.opensagres.xdocreport.core.XDocReportException:
freemarker.template.TemplateException: Expected collection or sequence.
developers evaluated instead to freemarker.template.SimpleHash on line 2,
column 3301 in
fr.opensagres.xdocreport.document.docx.DocXReport@1e97676!word/document.xml.
at fr.opensagres.xdocreport.template.freemarker.FreemarkerTemplateEngine.process(FreemarkerTemplateEngine.java:128)
at fr.opensagres.xdocreport.template.freemarker.FreemarkerTemplateEngine.processWithCache(FreemarkerTemplateEngine.java:78)
at fr.opensagres.xdocreport.template.AbstractTemplateEngine.process(AbstractTemplateEngine.java:88)
at fr.opensagres.xdocreport.template.AbstractTemplateEngine.process(AbstractTemplateEngine.java:66)
at fr.opensagres.xdocreport.document.AbstractXDocReport.processTemplateEngine(AbstractXDocReport.java:593)
at fr.opensagres.xdocreport.document.AbstractXDocReport.process(AbstractXDocReport.java:397)
at fr.opensagres.xdocreport.document.AbstractXDocReport.process(AbstractXDocReport.java:365)
at docxandfreemarker.DocxFreeMarkerLiber.main(DocxFreeMarkerLiber.java:68)
Caused by: freemarker.template.TemplateException: Expected collection or
sequence. developers evaluated instead to freemarker.template.SimpleHash on
line 2, column 3301 in
fr.opensagres.xdocreport.document.docx.DocXReport@1e97676!word/document.xml.
at freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:136)
at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:190)
at freemarker.core.Environment.visit(Environment.java:428)
at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.EscapeBlock.accept(EscapeBlock.java:84)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.Environment.process(Environment.java:199)
at fr.opensagres.xdocreport.template.freemarker.FreemarkerTemplateEngine.process(FreemarkerTemplateEngine.java:126)
... 7 more
What version of the product are you using? On what operating system?
The latest.
Please provide any additional information below.
My template is the same as in the example:
Project : «${project.name}»
Developers (Section) :
--------------------------------------------------------------------------------
------------------------------------------------------
Developers (Table) :
Name Last name Mail
«${developers.name}»
«${developers.lastName}»
«${developers.mail}»
Original issue reported on code.google.com by [email protected]
on 1 Aug 2011 at 1:36
What steps will reproduce the problem?
1. How can I use the xdocreport api with template engine set to FreeMarker?
2. IXDocReport report =
XDocReportRegistry.getRegistry().loadReport(in,TemplateEngineKind.FreeMarker);
3. Create Java model (Velocity = context <-> FreeMarker = hashMap)
What is the expected output? What do you see instead?
- .docx template with FreeMarker
- fr.opensagres.xdocreport.core.XDocReportException: Null template engine. Set
template engine with IXDocReport#setTemplateEngine.
What version of the product are you using? On what operating system?
latest version on win7 using jdeveloper 11.1.1.4
Please provide any additional information below.
I can generate .docx file using FreeMarker but in the javacode I still have to
use the velocity engine.
I wonder if there is a way to use the FreeMarker engine.
Thank you in advance.
Original issue reported on code.google.com by [email protected]
on 20 May 2011 at 9:44
Develop an SWT widgets PhotoControl to upload an image photo and display it.
This control was started to develop at
http://code.google.com/p/xdocreport/source/browse/commons/fr.opensagres.eclipse.
forms/src/fr/opensagres/eclipse/forms/widgets/PhotoControl.java?repo=eclipse
and was integrated in the sample
http://code.google.com/p/xdocreport/source/browse/commons/fr.opensagres.eclipse.
forms.samples/src/fr/opensagres/eclipse/forms/samples/editor/OverviewPage.java?r
epo=eclipse and the resume demo
http://code.google.com/p/xdocreport/source/browse/commons/fr.opensagres.xdocrepo
rt.eclipse.demo.resume/src/fr/opensagres/xdocreport/eclipse/demo/resume/internal
/ui/editors/OverviewPage.java?repo=eclipse
This control can display an image, upload an image but there is problem with
size of the image. Image size should be fixed and image must be resized with
SWT canvas (see
http://www.eclipse.org/articles/Article-SWT-images/graphics-resources.html)?
Modify button is ugly, perhaps it should changed?
Original issue reported on code.google.com by [email protected]
on 21 Oct 2011 at 12:51
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 16 Sep 2011 at 2:41
[deleted issue]
[deleted issue]
Today XDocReport report generation+ converter support :
* Java Main Application
* WEB Application
* OSGi Application
It should be cool if it exsits a WEB Service which provides service for report
generation, converter...to set XDocReport in the cloud.
Original issue reported on code.google.com by [email protected]
on 4 May 2011 at 1:29
Just for mail send test
Original issue reported on code.google.com by pascal.leclercq
on 18 Jul 2011 at 8:25
Hello,
when I try to generate a PDF from odt template i got the following exception:
fr.opensagres.xdocreport.converter.XDocConverterException: Cannot find
converters for from=ODT
at fr.opensagres.xdocreport.converter.ConverterRegistry.internalFindConverter(ConverterRegistry.java:84)
at fr.opensagres.xdocreport.converter.ConverterRegistry.findConverter(ConverterRegistry.java:52)
at fr.opensagres.xdocreport.document.AbstractXDocReport.getConverter(AbstractXDocReport.java:504)
at fr.opensagres.xdocreport.document.AbstractXDocReport.convert(AbstractXDocReport.java:520)
Regards.
Original issue reported on code.google.com by [email protected]
on 19 Jul 2011 at 2:27
What steps will reproduce the problem?
1. Create a project using the sample ODT2PDF project
(ODTProjectWithVelocity2PDF.java).
2. Point the InputStream to the attached file (invoiceTemplate.odt). This is a
stripped down file that features a table within a cell.
What is the expected output? What do you see instead?
You expect to get a .pdf representation of the .odt file. Instead, the
following exception is encountered:
[Fatal Error] :1:5455: The element type "table:table-cell" must be terminated
by the matching end-tag "</table:table-cell>".
Jul 28, 2011 2:42:26 PM org.odftoolkit.odfdom.pkg.OdfFileDom initialize
SEVERE: null
org.xml.sax.SAXParseException: The element type "table:table-cell" must be
terminated by the matching end-tag "</table:table-cell>".
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.odftoolkit.odfdom.pkg.OdfFileDom.initialize(OdfFileDom.java:142)
at org.odftoolkit.odfdom.dom.OdfContentDom.initialize(OdfContentDom.java:55)
at org.odftoolkit.odfdom.pkg.OdfFileDom.<init>(OdfFileDom.java:87)
at org.odftoolkit.odfdom.dom.OdfContentDom.<init>(OdfContentDom.java:45)
at org.odftoolkit.odfdom.pkg.OdfFileDom.newFileDom(OdfFileDom.java:110)
at org.odftoolkit.odfdom.pkg.OdfPackageDocument.getFileDom(OdfPackageDocument.java:281)
at org.odftoolkit.odfdom.dom.OdfSchemaDocument.getFileDom(OdfSchemaDocument.java:312)
at org.odftoolkit.odfdom.dom.OdfSchemaDocument.getContentDom(OdfSchemaDocument.java:190)
at org.odftoolkit.odfdom.converter.itext.ODF2PDFViaITextConverter.doConvert(ODF2PDFViaITextConverter.java:57)
at org.odftoolkit.odfdom.converter.itext.ODF2PDFViaITextConverter.doConvert(ODF2PDFViaITextConverter.java:41)
at org.odftoolkit.odfdom.converter.internal.AbstractODFConverter.convert(AbstractODFConverter.java:42)
at fr.opensagres.xdocreport.converter.odt.odfdom.itext.ODF2PDFViaITextConverter.convert(ODF2PDFViaITextConverter.java:53)
at fr.opensagres.xdocreport.document.AbstractXDocReport.convert(AbstractXDocReport.java:554)
at fr.opensagres.xdocreport.samples.odtandvelocity.ODTProjectWithVelocity2PDF.main(ODTProjectWithVelocity2PDF.java:56)
What version of the product are you using? On what operating system?
0.9.0-SNAPSHOT
Please provide any additional information below.
I've isolated the problem to AbstractXDocReport.doPreprocessorIfNeeded(). If
you avoid this call at line 536 of AbstractXDocReport.convert(), the table
prints out fine. Even putting vars in the IContext will work. But I'm sure
doPreprocessorIfNeeded() does something important. Perhaps exposing the
setting for AbstractXDocReport.preprocessed would be helpful as it would allow
the user to bypass this operating.
Let me know if I can be of assistance. Thanks for a cool product and I look
forward to more great things!
Thanks, Ryan
Original issue reported on code.google.com by [email protected]
on 28 Jul 2011 at 9:49
Attachments:
What steps will reproduce the problem?
1. visit xDocReport site
2. find objectives and content just what I 'need'
3. find on email, mailinglist or contact point to follow-up.
4. examine downloads, wiki, SVN source
What is the expected output? What do you see instead?
You need some kind of point of contact. Person, blog, wiki, etc. For example;
in the past I've set-up a special purpose yahoo group, google group or
wordpress page for this kind of project.
It doesn't need to be fancy.
What version of the product are you using? On what operating system?
I like what the project describes. For me, I'm looking at merging documents
and accessing web services like Google translate to 'massage' documents with
foreign language quotes.
I agree that the templating tool is a good approach. In fact I'm now
rethinking my design architecture around freemarker whereas before I was going
to re-use some ruby::MS Word code I had to generate documents.
Since I gather you are using XML document format and ODT, before seeing how you
have gone so far - I'd recommend using XSLT transforms when possible and
thinking about chaining XSLT-s.
My reason to make contact, is that the promise of this project is very much in
line with the things I'm doing. Not just translation/formatting. So I'm
interested in contributing in vacant capacities -- Testing: unit, beta,
integration. Some helper work like mailing lists and coordinating /filtering
information bugs, etc.
I know there will be a lot of interest in this schema because I've been working
in office automation since 1982 with PDP-8 and PDP-11 systems and few (if any)
have got that much right (to date).
Bon chance,
Will
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 23 Mar 2011 at 2:57
Today XDocReport use Velocity or Freemarker syntax to manage condition,
loop,etc... which works well but which can be complex for a secretary.
The basic idea is to manage a mapping between a word and complex syntax. For
instance to start a loop with Freemarker you must write in the docx, odt
mergefield:
----------------------------------------
[#list developers as d]
----------------------------------------
To simplify this syntax you could just write :
----------------------------------------
MyList
----------------------------------------
Ex you could use FieldsMetadata to set this mapping :
----------------------------------------
FieldsMetadata metada = new FieldsMetadata();
metada.setMapping("MyList", "[#list developers as d]");
----------------------------------------
We could provide too an helper class which build docmosis syntax
http://www.docmosis.com/features/template-management
and we could use docmosis syntax in the docx, odt and transform this syntax to
Velocity, Freemarker syntax. In teh PDF
https://www.docmosis.com/docmosisfiles/download/release2.2/Docmosis-template-gui
de2.2.3_3415.pdf you can see Docmosis syntax
We could write this in the report :
----------------------------------------
rs_developers
----------------------------------------
(rs_ means Repeat Section) instead of writing that :
----------------------------------------
[#list developers as d]
----------------------------------------
Original issue reported on code.google.com by [email protected]
on 23 Sep 2011 at 1:18
Steps to reproduce:
Generate a docx document with only the page number inserted at header (with or
without any fields).
Process document using xdocreport, save, and try to open with word.
Error is raised: "problems with content, at /word/header1.xml".
Thank you for this great library.
Original issue reported on code.google.com by [email protected]
on 30 Oct 2011 at 11:11
[deleted issue]
Hello,
I need to generate rows of table without using an Object model(like Developper).
For example using List<Map<String,String>>.
How I can do it?
Thanks.
Original issue reported on code.google.com by [email protected]
on 15 Jul 2011 at 10:35
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.