Page 1 of 1

Report Render is empty

Posted: Wed May 13, 2015 6:12 pm
by Jorge Henrique
I have an application, client and server.

I need to return the server template to the client rendering.

Code server:

Code: Select all

StiReport report= StiReport.GetReportFromAssembly(fileLayoutComped, false);
report.CacheAllData = true;

if (dataSet != null)
{
	report.RegData(dataSet);
}

byte[] tReport = report.SaveToByteArray();
                                                
report.Dispose();
report= null;

return BinaryUtil.SerializaObjeto(tReport);
Code Client:

Code: Select all

byte[] rReport = (byte[])BinaryUtil.DeserializaObjeto(dicionarioService.GetReport(IdReport, BinaryUtil.SerializaObjeto(ListParameter)));

StiReport report = new StiReport();

report.Load(rReport);

report.Render(false);

StiViewerConfigService previewConfigService = StiConfig.Services.GetService(typeof(StiViewerConfigService)) as StiViewerConfigService;
previewConfigService.PageNewEnabled = false;
previewConfigService.PageDeleteEnabled = false;
previewConfigService.PageDesignEnabled = false;
previewConfigService.PageSizeEnabled = false;

if (Imprimir)
{
	report.PrinterSettings.ShowDialog = false;
	report.Print(false);
}
else
{
	if (Formulario)
		report.Show(Sessao.FormPrincipal, true);
	else
		report.Show(Sessao.formPrincipal);
}
Report Render is empty

Re: Report Render is empty

Posted: Thu May 14, 2015 10:44 am
by HighAley
Hello.

There is a problem with data or something else. We will be able to help you, if you send us a sample project that reproduces the issue.
Without the working same we can't guess what is wrong in your project.

Thank you.

Re: Report Render is empty

Posted: Thu May 14, 2015 1:36 pm
by Jorge Henrique
My project is attached.

Re: Report Render is empty

Posted: Fri May 15, 2015 7:21 am
by HighAley
Hello.

Sorry, but we could not reproduce the issue because the is no report assembly in the attached project.

Thank you.