Я генерю отчет:
Код: Выделить всё
string sql = "select report from dbo.report where idreport = " + idreport.ToString();
dbconn._db.command.CommandText = sql;
try
{
dbconn._db.OpenDB();
rep = (byte[])dbconn._db.command.ExecuteScalar();
}
catch
{
throw;
}
finally
{
dbconn._db.CloseDB();
}
// построить отчет
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;
В чем может быть дело?