Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - accessviolationexception with RC.Records.Add
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

accessviolationexception with RC.Records.Add

 Post Reply Post Reply
Author
Message
sintra@sintra-sl.es View Drop Down
Groupie
Groupie


Joined: 07 April 2015
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote sintra@sintra-sl.es Quote  Post ReplyReply Direct Link To This Post Topic: accessviolationexception with RC.Records.Add
    Posted: 29 April 2021 at 6:32am
Hi,
I'm working with ReportControl v 18.0.1, Visual Studio 17 and C#.
The code normally works fine, but sometimes it gives an error:
"system.accessviolationexception en mscorlib.dll".
This occurs when running "ReportRecord Record = RCRemesas.Records.Add();"

Where is the problem??

Thanks.



           foreach (Remesa ObjRemesa in ArrayRemesas)
           {
                ReportRecord Record = RCRemesas.Records.Add();

                Record.AddItem(ObjRemesa.Id1);

              Record.AddItem(ObjRemesa.Numero1);//
   Record.AddItem(Convert.ToDateTime(Convert.ToDateTime(ObjRemesa.Fecha1).ToString("dd/MM/yy")));// 

                Record.AddItem(ObjRemesa.Estado1);// 
                Record.AddItem(ObjRemesa.IdCuentaCorriente1);

                Record.AddItem(BDRemesas.ObtenerTotalRemesa(ObjRemesa).ToString("#,##0.00"));                                        
           }

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.