[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.birt] Re: Problems with load report from stream and report library
|
I think, Jason means to report the bug to
https://bugs.eclipse.org/bugs/enter_bug.cgi?classification=BIRT
If you don't have an account, you may get registered here:
https://bugs.eclipse.org/bugs/createaccount.cgi
"Radovan Radic" <radicr.killspam@xxxxxxxx> schrieb im Newsbeitrag
news:e1m5g4$ckk$1@xxxxxxxxxxxxxxxxxxxx
> Hello Jason,
>
> I dont understand what do you mean by "Can you log it" ? It doesnt throw
> the
> exception, maybe i should look under birt plugins (logs directory) or
> what?
>
> Thanks,
> Radovan
>
> "Jason Weathersby" <jweathersby@xxxxxxxxxxx> wrote in message
> news:e1lu1i$7ve$1@xxxxxxxxxxxxxxxxxxxx
>> This sounds like a bug. Can you log it?
>>
>> Jason
>>
>> "Radovan Radic" <radicr.stop.spam@xxxxxxxxx> wrote in message
>> news:e1ln6a$5gu$1@xxxxxxxxxxxxxxxxxxxx
>> > Hello,
>> >
>> > I created simple report library which so far has got one grid that
>> > represents
>> > company logo, report title (via paremeter) and report creation date.
>> > It works ok when i use library in my reports and when i load report
> files
>> > from file (hard-coded path).
>> >
>> > String repFile =
>> > "D:/java/eclipse3.1/workspace/Smm/resource/actionlog.rptdesign";
>> > try {
>> > // TODO: Later will be loading from InputStream
>> > IReportRunnable report = engine.openReportDesign(repFile);
>> > if (report != null) {
>> > IRunAndRenderTask task = engine.createRunAndRenderTask(report);
>> > ...
>> >
>> > Report gets rendered properly with the header defined in report
>> > library.
>> > Report library is in same folder as all reports and in report
>> > definition
>> > there is
>> > <list-property name="libraries">
>> > <structure>
>> > <property name="fileName">spacemanagement.rptlibrary</property>
>> > <property name="namespace">spacemanagement</property>
>> > </structure>
>> > </list-property>
>> >
>> > However, when i try to do this
>> >
>> > InputStream is =
>> > getClass().getResourceAsStream("/resource/actionlog.rptdesign");
>> > try {
>> > IReportRunnable report = engine.openReportDesign(is);
>> > if (report != null) {
>> > IRunAndRenderTask task = engine.createRunAndRenderTask(report);
>> > ...
>> >
>> > report itself gets rendered properly, but there is no header from
>> > report
>> > library .I suppose engine reading from input stream is not able to load
>> > report library files.
>> > Can anyone help me with this?
>> >
>> > Radovan
>> >
>> >
>> >
>>
>>
>
>