DetailBeforeGenerate Invalid pointer operation

Hello I am migrating my system from Delphi 7 to delphi Rio and have been using the report builder trial for the latest version 20 for now and when exporting a report to pdf this is giving an error that I don't know what it would be if any can help me I appreciate it . The error is as follows: DetailBeforeGenerate
Invalid pointer operation

Comments

  • Hello,

    Please update your profile with your first and last name.

    This is not a known issue with RB 20. Are you implementing the DetailBeforeGenerate event? If so, try commenting out that code and see if the error is resolved.

    If you are able to recreate the issue with a simple example (using only RB and Delphi components), send it to support@digital-metaphors.com in .zip format and we'll take a look.


    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • Hello it is a calculation, done that if you comment not of the error, it follows an excerpt from the code:
    Linha_Barras := Boleto['COD_BANCO']+'9'+ FatorValor + CampoLivre;
    DV11 := Modulo11(Linha_Barras,9,'');
    Insert(DV11,Linha_Barras,5);
    Linha_Digitavel := Copy(Linha_Barras,1,4);
    Linha_Digitavel := Linha_Digitavel + Copy(CampoLivre,1,5);
    Linha_Digitavel := Linha_Digitavel + Modulo10(Linha_Digitavel) + ' ';
    Insert('.',Linha_Digitavel,6);
    Tx := Copy(CampoLivre,6,10);
    Tx := Tx + Modulo10(Tx) + ' ';
    Insert('.',Tx,6);
    Linha_Digitavel := Linha_Digitavel + Tx;
    Tx := Copy(CampoLivre,16,10);
    Tx := Tx + Modulo10(Tx) + ' ';
    Insert('.',Tx,6);
    Linha_Digitavel := Linha_Digitavel + Tx;
    Linha_Digitavel := Linha_Digitavel + DV11+ ' ';
    Linha_Digitavel := Linha_Digitavel + FatorValor;
    NumBoleto.Left := 76;
    the stranger that in the older version of RB there is no error but the error occurs only when exporting to pdf, when it is generated on the screen it does not present the error
Sign In or Register to comment.