Questions tagged as 'c#'

2
answers

Create spreadsheet by C # without having excel installed [closed]

I'm developing a program that should export data to an Excel spreadsheet. I need to know how to build a spreadsheet with C #, but I only found tutorials that require excel installed on the computer. I would like to be able to export data with...
asked by 09.07.2017 / 16:25
1
answer

I want to fetch information from a table with EF [closed]

I have the following form code: @model Domain.Entities.Tabela1 @using WebUI.HtmlHelpers @using WebUI.Extensions @{ ViewBag.Title = "Tabela"; Layout = "~/Views/Shared/_Master.cshtml"; } <article ng-app="registrationModule"> &l...
asked by 30.06.2017 / 13:07
2
answers

Conversion specified is not valid

I'm doing a query with LINQ on DataTable in that snippet of code. I have to check if there is already a link for person registered in the database. My query using LINQ is working perfectly, the problem is to store query.C...
asked by 16.10.2015 / 14:54
2
answers

Project empty MVc. I can not start

I started doing a project from scratch using MVC 4 of VS 2012. As I opted for an empty, I can not start the view. I made the route: routes.MapRoute( name: "Operador", url: "{controller}/{action}/{id}",...
asked by 07.10.2015 / 22:36
2
answers

Difficulty transcribing a console application program for windows form (C #)

I was learning to use split and in the end I had this code: namespace String_Split { class Program { static void Main(string[] args) { string mensagem_completa; string palavra; string...
asked by 07.10.2015 / 18:53
1
answer

How to access folders on external network with C # asp.net?

When I try to read files on another network (which requires authentication), the error below occurs. The same problem I also have when I try to access protected folders. Does anyone know how I can solve this? DirectoryInfo dirE = new Direct...
asked by 26.10.2016 / 15:21
1
answer

How to send complex object to Web API?

I need to pass a parameter to my Controller in the Web API which is a complex object, this object has some normal properties (the most complex is a DateTime). I'm doing the following, but I can not access: WebApiConfig Route: config.Routes....
asked by 14.10.2015 / 22:00
1
answer

How to print file without opening?

My system generates a PDF created in iTextSharp and I use the following code to open it: System.Diagnostics.Process.Start(nomeArquivo); nomeArquivo is the address of the PDF file. How do I get the file straight to the printer with...
asked by 22.01.2017 / 23:07
1
answer

- [Lifestyle Mismatch] ApplicationSignInManager (Web Request) depends on IAuthenticationManager (Transient)

I'm getting an error initializing simpleinjector that I can not solve at all. The error appears when it tries to execute the line: container.Verify(); Following error:    - [Lifestyle Mismatch] ApplicationSignInManager (Web Reques...
asked by 18.01.2017 / 01:40
1
answer

Monitor opening of Forms C #

I need to monitor the opening of Forms inside a C # application. For example, every time you open a Form within the application, the application must either execute a method or trigger an event with open form information. I researched and found...
asked by 16.01.2017 / 13:46