Details printed 2 times

Stimulsoft Reports.WEB discussion
romulocpd
Posts: 73
Joined: Thu Oct 17, 2013 10:39 pm
Location: Nova Friburgo, Rio de Janeiro, Brasil

Details printed 2 times

Post by romulocpd »

Hello.

My report is printed but the details section is printed 2 times!!! See the attachs.

My BO:

Code: Select all


namespace GestorWebNet.Models.View.Financeiro.Caixa
{
    public class HistoricoAberturaFechamentoVisualizarView
    {
        public HistoricoAberturaFechamentoVisualizarView()
        {
            Lancamentos = new List<HistoricoAberturaFechamentoVisualizarLancamentosView>();
            Cartoes = new List<HistoricoAberturaFechamentoVisualizarCartaoView>();
            Cheques = new List<HistoricoAberturaFechamentoVisualizarChequesView>();
        }

        public int Codigo { get; set; }
        public string Caixa { get; set; }
        public DateTime DataAbertura { get; set; }
        public decimal ValorAbertura { get; set; }
        public DateTime? DataFechamento { get; set; }
        public decimal ValorFechamento { get; set; }
        public string ObsAbertura { get; set; }
        public string ObsFechamento { get; set; }
        public string UsuarioAbertura { get; set; }
        public string UsuarioFechamento { get; set; }
        public bool AberturaAutomatica { get; set; }
        public bool FechamentoAutomatico { get; set; }
        public decimal ValorSangria { get; set; }
        public decimal ValorSuprimento { get; set; }


        public List<HistoricoAberturaFechamentoVisualizarLancamentosView> Lancamentos { get; set; }
        public List<HistoricoAberturaFechamentoVisualizarCartaoView> Cartoes { get; set; }
        public List<HistoricoAberturaFechamentoVisualizarChequesView> Cheques { get; set; }
    }

    public class HistoricoAberturaFechamentoVisualizarLancamentosView
    {
        public int Codigo { get; set; }
        public decimal ValorEntrada { get; set; }
        public decimal ValorSaida { get; set; }
        public decimal SaldoAtual { get; set; }
        public string Descricao { get; set; }

        public DateTime Data { get; set; }
    }

    public class HistoricoAberturaFechamentoVisualizarCartaoView
    {
        public int PedidoBalcao { get; set; }
        public decimal Valor { get; set; }
        public string Administradora { get; set; }
        public string Descricao { get; set; }
        public string CreditoDebito { get; set; }
    }

    public class HistoricoAberturaFechamentoVisualizarChequesView
    {
        public int Codigo { get; set; }
        public string Banco { get; set; }
        public string Agencia { get; set; }
        public string Conta { get; set; }
        public string NumeroCheque { get; set; }

        [DisplayFormat(DataFormatString="{0:dd/MM/yyyy}")]
        public DateTime DataCheque { get; set; }
        public decimal Valor { get; set; }
        public int PedidoBalcao { get; set; }
        public string Descricao { get; set; }
    }
}
Today:
I did a small test. If I inset the Cartoes data, the sections are printed 3 times! What I'm doing wrong?
Example
Example
Report 2 times Details.png (61.97 KiB) Viewed 3684 times
Data to be printed:
MovimentoCaixa_Details2times.pdf
PDF File
(19.53 KiB) Downloaded 483 times
Attachments
HistoricoAberturaFechamentoVisualizarView.cs
dotNet ModelView
(2.89 KiB) Downloaded 456 times
HistoricoAberturaFechamentoCaixa.mrt
Report finished 3 details
(89.52 KiB) Downloaded 324 times
FechamentoCaixa_Final.pdf
Report printing Details 3 times
(28.13 KiB) Downloaded 454 times
Object overview to print
Object overview to print
Object overview.png (11.56 KiB) Viewed 3676 times
HistoricoAberturaFechamentoCaixa.mrt
MRT file
(57.68 KiB) Downloaded 519 times
romulocpd
Posts: 73
Joined: Thu Oct 17, 2013 10:39 pm
Location: Nova Friburgo, Rio de Janeiro, Brasil

Re: Details printed 2 times

Post by romulocpd »

Anyone?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Details printed 2 times

Post by Alex K. »

Hello,

Can you please show us your code for registration data and showing report. Or please send us a sample project which reproduce the issue for analysis.

Thank you.
romulocpd
Posts: 73
Joined: Thu Oct 17, 2013 10:39 pm
Location: Nova Friburgo, Rio de Janeiro, Brasil

Re: Details printed 2 times

Post by romulocpd »

Hello.

I've copied my BO and MRT file to this test project. The same problem occours, the sections are printed 3 times!

Thank you!
Attachments
MvcTeste.rar
Example
(2.43 MiB) Downloaded 434 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Details printed 2 times

Post by HighAley »

Hello.

There are some specificities when working with Business Objects.
You should put empty Data Band with Dados Business Object.
Please, look at the attached report template:
HistoricoAberturaFechamentoCaixa.mrt
(90.09 KiB) Downloaded 310 times
Thank you.
romulocpd
Posts: 73
Joined: Thu Oct 17, 2013 10:39 pm
Location: Nova Friburgo, Rio de Janeiro, Brasil

Re: Details printed 2 times

Post by romulocpd »

Thank you, now it's ok. I didn't know about it.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Details printed 2 times

Post by HighAley »

Hello.

We are always glad to help you.
Let us know if you need any additional help.

Thank you.
romulocpd
Posts: 73
Joined: Thu Oct 17, 2013 10:39 pm
Location: Nova Friburgo, Rio de Janeiro, Brasil

Re: Details printed 2 times

Post by romulocpd »

Your tool is really fantastic. I'd like to suggest you create a page, or new forum, to users put image from your reports. Sometime anyone like me need any suggestions to get a good visual reporting.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Re: Details printed 2 times

Post by Andrew »

Hello,

Thank you for your words!

Could you, please give us more information about your idea?

Waiting for your reply.
Thank you.
romulocpd
Posts: 73
Joined: Thu Oct 17, 2013 10:39 pm
Location: Nova Friburgo, Rio de Janeiro, Brasil

Re: Details printed 2 times

Post by romulocpd »

I thought in a page, or forum, that any user can put some examples of your own reports. It will work like a library of reports. Sometimes can be interesting see reports of others Stimulsoft users the get some ideas. Maybe you can sort by type (order, simple list, complex list, subreport). The examples are JPEG images, but if the user want they can put MRT files too.
Post Reply