Questions tagged as 'c#'

1
answer

How do I approve a model depending on the confirmation of another model?

How do I make the View of request only appear to the user, when the confirmation of class Aprovacao is true . Follow logic: The user creates the request and registers, 2- User waits for confirmation of request made...
asked by 15.05.2017 / 23:24
1
answer

Service Return

I have the following problem, I make an ajax call to my service and it returns me a paged list everything ok .. And I have a button where I download it to excel, only because it is a very heavy table and I can not paginate it in Excel, I just ha...
asked by 16.05.2017 / 16:05
1
answer

Printing DataGridView C #

I need to print the selected columns in a DataGridView. I can not generate an image because there are many columns (15 in all) and they do not all appear on the screen. I can print in landscape or portrait as long as all the information appears....
asked by 16.05.2017 / 22:11
0
answers

Specifications and Dapper [closed]

Hello, does anyone know any extension of dapper that makes it possible to use Specifications (Expression<Func<T, bool>>) in C #?     
asked by 16.05.2017 / 21:46
0
answers

Block view and edit of Crystal Reports RPT file

I have a C # application and I have created some reports that remain in the application folder, the problem is that if someone copies the report (.rpt) files the same if they have Crystal Reports installed will be able to view and change the set...
asked by 16.05.2017 / 12:51
2
answers

Problem sending file via FTP C # [closed]

I have an executable that sends a .CSV file via FTP to my client. Running on my local machine works perfectly but when running on my client's server it does not work. Whenever it falls on the line request.GetRequestStream() I get the...
asked by 04.05.2017 / 15:59
1
answer

Remove element in interop

I'm developing a tool that will generate a file in .DOC format, the form fields will be filled anyway but I would like to put a formatting that removes any symbol from the text. Ex: "•", "¹²³ £ ¢ ¬" var atividades = wordDoc.Content.Paragrap...
asked by 29.05.2017 / 18:33
1
answer

Implement dictionary as interface C # [closed]

I'm trying to set a dictionary in my interface, but it's saying that the main class did not implement the dictionary. Interface.cs public interface IItem { event Action<string, string, string, string, string, string, string, string,...
asked by 02.04.2017 / 22:08
1
answer

How to simulate mouse clicks in a background program

I'm having a problem with using the SendMessage and PostMessage functions in C # to simulate mouse clicks in a minimized (background) program. I used this code but it did not work, I believe it is makeparam . public enu...
asked by 24.04.2017 / 03:47
1
answer

Add parameter using PagedList in record detail and page links

Does anyone know how to keep a parameter between the various pages of the PagedList? The situation is this: I used Scope_Identity when creating a row in a table, since I made the Id of the created parameter item to another acti...
asked by 24.04.2017 / 04:36