Questions tagged as 'c#'

3
answers

Serialization Namespace with link

I'm working with Serialization, I'm adding Namespace to two tags, A nfeProc and NFe. I can usually add the following Name: [XmlRoot("nfeProc", Namespace = "http://www.portalfiscal.inf.br/nfe")] In XML: <nfeProc versao="2.00" xmlns="htt...
asked by 23.04.2015 / 22:31
1
answer

How to create variables for status of an order?

How can I create variables to serve as possible status for an order? After the request has already been made, I want to create options so that when the attendant enters, the status of the request changes. Options can be: 1-In transit 2-Canceled...
asked by 28.05.2015 / 03:00
1
answer

Database image in reportviewer

Hello, I have the following problem: I have a table of Paciente and it has a Foto field, which is a string with the path of this photo. I need to generate a report with the data of the selected patient and in that report sho...
asked by 26.05.2015 / 15:26
1
answer

Added multiple items in a DataGrid by List

I have two textboxes. One for e-mail and the other for remarks. When the user clicks the add button, it should be adding to my datagrid, but to no avail! How can I do this? As the user clicks on the add button, he has to increase the rows of the...
asked by 27.05.2015 / 19:20
1
answer

How popular is a TreeView with a list of the bank?

I have a% static% representing folders and files in this template: <asp:TreeView ID="TreeView1" runat="server"> <Nodes> <asp:TreeNode Text="Diretorio1" Target="_blank"> <asp:TreeNode Text="arquivo1 " Target=...
asked by 13.02.2015 / 01:50
2
answers

Set anonymous object property name and resources

I'm using multi-language resources on a system. In a json return I create an anonymous object var resultado = minhalista.Select(x => new { }) But I happen to need the property of this anonymous object to be according to the value of t...
asked by 08.04.2015 / 02:47
1
answer

Is there any way to give the columns an automatic width?

I'm putting together a report via ItextSharp and I've read about how to assign specific widths to the PdfPTable columns, however I would like this width to be automatically assigned according to the content of the columns. Any ideas?     
asked by 19.02.2015 / 12:22
1
answer

How to avoid reducing the width of the columns?

I'm using the itextsharp library for reporting in PDF and although I can generate documents with nice layout and assign specific widths through an array of dimensions: Tabela.SetWidths(VetorDeLarguras) However, when the number of columns in...
asked by 19.02.2015 / 20:02
4
answers

SQL query with ID from a combobox - C #

I am building a small system where I created a Formulario where there is a Combobox that lists the names of employees stored in the database and a DataGrid that shows the services done by them (value, description and client...
asked by 25.02.2015 / 18:33
2
answers

How to return all records in a table

In my context I have a File table, and another version of the file, so I did with the entity to return a file, and only one version of the file: internal Arquivo GetArquivo(string termo) { using (var ctx = new GEDEntities())...
asked by 05.02.2015 / 13:26