Page 1 of 1
inputstream
Posted: Fri Mar 13, 2015 10:46 am
by kamandshop
hi
i love to know how to convert report to inputstream in java format, can anyone help me please?
Re: inputstream
Posted: Fri Mar 13, 2015 11:14 am
by Vadim
Hello.
You can use
Code: Select all
com.stimulsoft.report.StiSerializeManager:
public static StiReport deserializeReport(InputStream is)
public static void serializeReport(StiReport report, OutputStream outputStream)
Thank you.
kamandshop wrote:hi
i love to know how to convert report to inputstream in java format, can anyone help me please?
Re: inputstream
Posted: Fri Mar 13, 2015 12:42 pm
by kamandshop
thank you, but i want to convert report to inputstream, your code is converting inputstream to report.
I found this code in your samples, and I wanna return my report as my output of this method:
@Override
public InputStream load(String repotrName) {
System.out.println("must override this method to specify your own load repotr");
if (repotrName.contains("Report.mrt")) {
return new StiResourceFlex().getDemoMrt();
} else {
return new StiResourceFlex().getDemoMdc();
}
}
so I need to convert the report to input stream.
or if you know a better way please share it with me.
thank you,
Re: inputstream
Posted: Fri Mar 13, 2015 1:16 pm
by Alex K.
Hello.
You can convert report only in OutputStream, use
Code: Select all
public static void serializeReport(StiReport report, OutputStream outputStream)
Thank you.
Re: inputstream
Posted: Fri Mar 13, 2015 2:58 pm
by kamandshop
Oh, Thank you, You know, I have not enough information about these kind of reports and I supposed to create a project which will use these reports and this is something like exam for my hiring process. They wanna buy this product after that and I should start the job. So if you have any samples which uses some reports made by the user and the applications shows the report in a web page (just the report not the designer) please help me.
Thank you so much,
Re: inputstream
Posted: Mon Mar 16, 2015 5:38 am
by HighAley
Hello.
You could look at the sample projects that you could find in the Stimulsoft installation folder.
You could real the
Stimulsoft User Manual,
Stimulsoft Programming Manual and
Stimulsoft Knowledge Base.
Also there are
a lot of tutorial videos.
Thank you.