inputstream

Stimulsoft Reports.JAVA discussion
Post Reply
kamandshop
Posts: 15
Joined: Sat Mar 07, 2015 7:04 pm

inputstream

Post by kamandshop »

hi
i love to know how to convert report to inputstream in java format, can anyone help me please?
Vadim
Posts: 363
Joined: Tue Apr 23, 2013 11:23 am

Re: inputstream

Post 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?
kamandshop
Posts: 15
Joined: Sat Mar 07, 2015 7:04 pm

Re: inputstream

Post 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,
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: inputstream

Post 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.
kamandshop
Posts: 15
Joined: Sat Mar 07, 2015 7:04 pm

Re: inputstream

Post 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,
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: inputstream

Post 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.
Post Reply