Questions tagged as 'vb.net'

1
answer

Invalid visual variable for the max-width property of a style. In MVC asp.net

I have the following code: <% For Each img In Model.listadoNoticias.Item(0).FOTO Dim id_LaImagen = "foto_" & img.IdFoto.ToString() Dim src_imagen = img.RutaFoto.Split("/") Dim ruta_Foto = Server.MapPath("~") & s...
asked by 10.03.2016 / 04:47
2
answers

Is not it necessary to initialize an accumulator?

Ando with this question, I would like to know why it is not necessary to initialize an accumulator in vb.net Module Module1 Sub Main() Dim valor, suma As Integer Do Console.Write("Ingrese valor (0 pera finalizar):") v...
asked by 29.03.2017 / 06:58
1
answer

Unzip ZIP files

I have a method that decompresses ZIP files, but I have a problem when I try to unzip a file on my data server . Method: Public Function descomprimir(rutaZip As String, Optional carpetaDestino As String = "") If carpetaDestino...
asked by 21.04.2017 / 06:49
1
answer

I can not pass an Object by AJAX to a Visual Basic Function

I have a big problem with Ajax MVC and Visual Basic: When I create an object in javascript to do a POST in Controller everything is fine by when I receive the Object in the ActionResult, all the attributes are Nulls. Can someone help me?...
asked by 16.03.2018 / 18:47
0
answers

How can I send a PDF file to a printer by "LPR" from vb.net? [closed]

I would like to know how to send a PDF file to a printer by "LPR" from vb.net I know that the command I must execute is "lpr -S 192.168.70.15 -P red" + filename "but I try it from Process in Windows10 and nothing comes in. This is my code:...
asked by 11.12.2018 / 09:51
1
answer

Is it possible to rotate a "Chart" control on vb.net by 90 degrees?

I have a small graph in a form and I would like to know if it is possible to rotate it 90 degrees, if so, could you show me how you can do it? With this little code I can draw the graph. Dim s As New Series s.Name = "Ganancia" '...
asked by 01.10.2018 / 01:33
1
answer

Get the values of each cell of an HTML table with String.Split in vb.Net

Previous information: I'm making an application in which I copy part of the code of a web page (from a table of this to be exact) in order to put the information of this in a database. For that, he had thought about dividing the chain that the u...
asked by 26.04.2018 / 09:15
2
answers

Assign a rgb color to a cell in a datagridview

row.Cells(0).Style.BackColor = Color.Red 'RGB(1, 1, 1) The RGB does not accept it. How would you do in this case?     
asked by 30.12.2016 / 17:02
2
answers

Add records of a DataTable

Dear good afternoon, someone can help me with the following problem ... I need to make an sql query on my system in Visual Basic, which sums up all the amounts registered when the field called "typedocument" is invoice or ticket, but When the fi...
asked by 10.08.2017 / 16:17
1
answer

How to prevent "being encoded as" in Razor?

Well the question here is that I'm working on a razor file and I'm wanting to create a json from an array in vb.net as follows: For Each ItineraryPnr In ItinerariesNode.ChildNodes arrayPnrRetrieve(contPnr) = New With {Key .trasactio...
asked by 14.03.2016 / 18:13