Remove special characters from generated word doc [message #688007] |
Thu, 23 June 2011 17:10 |
anna.w.teittinen Messages: 23 Registered: February 2011 |
Junior Member |
|
|
Hello,
I would like to know if anyone can provide input / solution to a problem I am encountering with the Word 2010 file that can be generated using the BIRT Report Engine library. From what I read in this forum and the BIRT Reporting Forum, the BIRT Report Engine API can only generate a word doc in Word 2010 format.
Here is my snippet of code (assume 'engine' has already been initialized) to generate a word 2010 doc file:
-----
IReportRunnable report = engine.openReportDesign(reportDesignName);
IRunAndRenderTask task = engine.createRunAndRenderTask(report);
IRenderOption options = new RenderOption();
options.setOutputFileName(fullPathOutputFilename);
options.setOutputFormat("doc");
task.setRenderOption(options);
-----
I have attached a small word doc ("test3.doc") generated using the above code.
This sample report simply has 2 grids, each with 2 cells, each cell has a label.
As you can see in the word doc, there appears to be some special characters as if to show where each grid and label are positioned.
Also, as I move the cursor (hover) over each row, there appears to be some special symbols on both the left and right of the row, moving as the cursor moves.
How can I get rid of (or hide) these? I just want to generate a word doc that will let me make modifications manually later on without seeing any special characters. When I create a word doc manually (via File->New), I do not see these special characters when I type.
Do I use the ITaskOption.setOption( String name, Object value ) method?
The api does not provide any valid parameter values to pass in.
http://dev.eclipse.org/viewcvs/viewvc.cgi/source/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/ITaskOption.java?view=markup&revision=1.2&root=BIRT_Project
Thanks so much in advance for your help.
--Anna
-
Attachment: test3.doc
(Size: 7.81KB, Downloaded 220 times)
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05631 seconds