Hi All...
My webapp is using birt 2.2.0 and I'm facing a problem...
In my application, I create an runandrendertask from a .rptdesign ...
this rptdesign has a data set and a data source.
but in my webapp I'm overwriting this data set query text with:
dsHandle.setDataSource("Data Source");
dsHandle.setName("Data Set");
dsHandle.setQueryText(qry);
till then, it's ok.
Maybe that is not the problem at all.
this issue is that when I run my servlet, the report opens me the pdf I asked for, but the data that it should be showing is blank. totally null.
I think the problem isn't with the query text. so I will paste here some codes with some methods that are deprecated. Maybe this is all about refactoring the code to non-depracated methods.
-------
...
HTMLRenderContext renderContext = new HTMLRenderContext();
String pastaImagens = "D:\\me";
renderContext.setBaseImageURL(pastaImagens);
renderContext.setImageDirectory(pastaImagens);
...
-------
...
HTMLRenderOption options = new HTMLRenderOption();
options.setOutputFormat(HTMLRenderOption.OUTPUT_FORMAT_HTML);
options.setOutputStream(resp.getOutputStream());
task.setRenderOption(options);
...
----------
thanks for any help or comment,
Scott