Page 1 of 1

Empty databand

Posted: Tue Jul 28, 2015 12:17 pm
by onik111
Hi.
I programming report.

Code: Select all

StiReport report = new StiReport();
			report.Load(rep);
			report.Compile();

			report["idorder"] = IdOrder;
			report["PeopleFio"] = FIO;
			
			report.Render(true);

MemoryStream stream = new MemoryStream();
			report.ExportDocument(StiExportFormat.Pdf, stream);

return stream;
and i have empty databand and empty data... Why? How can I initialize the data?

Re: Empty databand

Posted: Tue Jul 28, 2015 12:51 pm
by HighAley
Hello.

Could you specify what type of Connection and Data Source you use?
Please, describe your issue more detailed.

Thank you.

Re: Empty databand

Posted: Tue Jul 28, 2015 1:27 pm
by onik111
I have DefaultConnect = sql DB and DataBand = sql query.
I call report from disainer and it work good. But no generate from code.
Pleas, help.

Re: Empty databand

Posted: Wed Jul 29, 2015 11:32 am
by HighAley
Hello.

You code is right.
We will be able to help you if we get the sample project.

Thank you.