Report Render is empty

Stimulsoft Reports.NET discussion
Post Reply
Jorge Henrique
Posts: 6
Joined: Wed Feb 04, 2015 6:09 pm
Location: Brazil

Report Render is empty

Post 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
Attachments
Relatório Dialog.pdf
(35.31 KiB) Downloaded 200 times
---

Jorge Henrique
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Report Render is empty

Post 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.
Jorge Henrique
Posts: 6
Joined: Wed Feb 04, 2015 6:09 pm
Location: Brazil

Re: Report Render is empty

Post by Jorge Henrique »

My project is attached.
Attachments
TestReport.rar
(29.37 KiB) Downloaded 165 times
---

Jorge Henrique
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Report Render is empty

Post by HighAley »

Hello.

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

Thank you.
Post Reply