|Remove special characters from generated word doc [message #688007]
||Thu, 23 June 2011 17:10
Registered: February 2011
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();
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.
Thanks so much in advance for your help.
(Size: 7.81KB, Downloaded 84 times)
Powered by FUDForum
. Page generated in 0.02871 seconds