Questions tagged as 'c#'

1
answer

I have a problem with ORACLE, System.Data.OracleClient

I have a stored procedure Oracle IDE: 4.0.3.16.84 and Visual Studio 2015 OracleConnection con = new OracleConnection(); OracleCommand oracommand = new OracleCommand(); OracleDataReader lector; con.ConnectionString =...
asked by 16.08.2018 / 22:24
1
answer

Elements within a user control in C #

Good morning, I am developing an application in C # and I am working with Windows Forms, in which I am using User Controls to be able to use the main menu that I defined as shown in the following photo: In the menu that displays to p...
asked by 17.08.2018 / 18:50
1
answer

Continue a consecutive C #

How to add 1 to my invoice number when I go through the printing method and continue where it is when I close the program, the label is LNumDoc // Metodo para imprimir public void Print(Panel pnl) { PrinterSettings ps = new Pri...
asked by 08.08.2018 / 20:22
1
answer

Replace the integers of a json with strings C #

Hello friends, I need to rewind all the integers within a json by strings, to say that if I have an object like:    {x: 1} ... I'll want to have {x: "1"} but I need you to do it with a json of any size, such as    {"x": 2, "y": "GLAN...
asked by 13.09.2018 / 22:54
1
answer

Error with Insert in Postgresql in C #

I have a problem that I can not solve because I do not see the error. I am developing a simple project in C #, when I execute a stored procedure of Postgresql (Insert): pgsqlCommand cmd = new NpgsqlCommand("select insertclientes(" + @idcuenta_...
asked by 06.08.2018 / 15:30
3
answers

How to iterate this javascript object in C # (or the correct way to send with AJAX) in ASP.NET

From a table where the user can add, delete and modify their values, you get a data type like the one shown below (which I can not change its format or data type) [here the code of the table ]: var info = [{ nombres: 'Juan',...
asked by 25.07.2018 / 00:42
1
answer

IErrorInfo.GetDescription error with E_FAIL (0x80004005)

I have the following function which receives the path of an Excel file to open it and read it to add users, I execute it in my project from Visual Studio and it runs without problems, when I take it to the server where it should work it shows me...
asked by 24.07.2018 / 16:50
1
answer

Call an object from a List and replace it with another

I need to call a specific object through a list to save it in another, I want to do it with the Id attribute, create a foreach like that but it does not return anything even the one that is marked, and I also need that from that Recommended list...
asked by 25.07.2018 / 18:19
1
answer

Remove edge of cells excel

I'm making a console application that reads a protected excel and dumps it into a database, the problem is that this excel has marked the edges of the cells in all lines. Excel.Application xlApp = new Excel.Application(); Excel...
asked by 25.07.2018 / 15:41
1
answer

How to show in a Datagridview a list of objects to choose from in a ComboBox (with different lists as options)

I have different lists of different objects and a ComboBox with the names of each list. How can I do so that each time I choose the name of a list the Datagridview shows the chosen option? With DataSource I can only se...
asked by 19.07.2018 / 15:12