Questions tagged as 'c#'

0
answers

Printing on client side with C # MVC automatically

I need to automatically print a PDF file that is in a folder on the server, but the print has to be on a specific printer on the CLIENT side. if (!String.IsNullOrEmpty(caminho)) { string impressoraPadraoOriginal = new System.Drawing.Pri...
asked by 13.11.2018 / 17:38
0
answers

C # - Reading Excel

I was able to read an excel file, but when displaying console the information does not get any spaces, how can I make room in the middle? kkkk usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threadin...
asked by 06.11.2018 / 17:16
1
answer

Error trying to save image Asp .Net MVC

Good morning, I'm trying to open, resize, and save an image again through an ASP.NET application, but I'm getting an error when the image will be saved. Here is the code that is giving error: public void MudarResolução(string nome) {...
asked by 06.11.2018 / 12:33
0
answers

How do you readjust the label of a chart js chart?

How do I adjust the font size of the label or place a line break? The text is not fully fit, so 1080 monitor fits, but 720 happens that. Mycode:<script>varmyChartcaixa=newChart(document.getElementById("caixa-chart"), { type: 'p...
asked by 06.11.2018 / 13:02
1
answer

BinaryWriter C #

I'm having a little problem, I use BinaryWriter to write the bytes and then be sent as a response surely I use it right (I think). However, when I use it several times, I give breakpoint or capture the answers by WireShark , looking a...
asked by 12.11.2018 / 14:22
0
answers

Enable JavaScript Web Browser Visual Studio

My application needs to use the native Visual Studio 2010 Web Browser, IE 11 specifically, and the site that will open requires JavaScript. I've tried changing the values in REGIT for the HKEY_CURRENT_USER/Software/Microsoft/Internet Explo...
asked by 09.11.2018 / 11:35
0
answers

TcpClient class or socket? W#

First question Half-turned there's emulator's I wanted to know if the TcpClient or Socket class would be good on network term and quick responses? Second doubt I use TcpClient But when I write a response using BinaryWriter and try to se...
asked by 09.11.2018 / 01:05
1
answer

SELECT lock when I make an UPDATE - SQLServer

I'll give an example of what I'm doing, but the very question is at the end. I have a table with 4,100,000 records and I am creating a theft that reads this data and exports it to MYSQL (it does not enter into the agenda, just to set it up)....
asked by 08.11.2018 / 13:41
0
answers

Preload loader for Views in Asp.Net MVC

How to make Asp.Net MVC have the feature while loading the page has a Load image and after loading all the content. I need this feature in Asp.Net MVC because this application is loaded in a WebView Xamarin Forms, and I realize that I must ha...
asked by 31.10.2018 / 22:17
2
answers

Problem with ThreadStatic from C #

I have a system where its authentication holds a token in a ThreadStatic property. It turns out that Monday, he started distributing the tokens incorrectly (after updating the windows server).    I made the application below to test the scena...
asked by 31.10.2018 / 19:22