Posts by Rafael Veloso • 299 points
21 posts
-
0
votes1
answer107
viewsA: How to run an oracle database via c# with no data return?
I could solve it! I created an output cursor in oracle (prc out sys_refcursor) and managed to bring the data. Thank you all!
-
0
votes1
answer107
viewsQ: How to run an oracle database via c# with no data return?
I am developing a WEBAPI in c# that runs a precedent on Oracle and after this procedure, it queries a table. This precedent only deletes data from a time table and inserts the the data informed in…
-
-1
votes1
answer56
viewsQ: Update oracle via c#
I created a method that updates to oracle. However, it is absurdly slow when it does. When I do other operations like "INSERT and SELECT" in this same table, the response time is very fast. Could…
-
1
votes1
answer53
viewsQ: Place only one item per line in a Listbox
my listbox is putting two or more items in the same row when it fits. How can I force it to put an item per line? Follow the code below: html <asp:ListBox ID="OC02_SERV_SOL" runat="server"…
-
0
votes0
answers207
viewsQ: Generate txt file with custom letter font
I’m creating a code that generates a txt to print to a printer matrix. However, I would like to change the font of the letters. Someone could help me, please? Follow the code below. try{ byte[]…
-
0
votes1
answer312
viewsQ: How can I stop Settimeout on C#
Hello, How can I stop the execution of Setimeout created in javascript only in C#? I Gero several PDF through this method. Below is the script: function geracao(formulario) {…
-
1
votes3
answers95
viewsQ: How can I copy content from a div to a hiddenfield?
I have a div that displays the user’s IP, in which this address is picked up by Javascript. However, I need to use the IP in Code-Behind. The idea would be to copy the contents of the div to a…
-
0
votes3
answers948
viewsQ: Limit maximum number of lines in a textarea
I have a textarea where I have limited the amount to 3 lines in the "Rows" property. However, this maximum amount is not being respected. Is there any other way not to allow more lines to jump?…
-
-1
votes1
answer1016
viewsQ: How do I get the machine name via javascript?
Hello, I would like to get the name of the user’s machine that is accessing my application.. How can I do this by javascript? <script type="text/javascript"> function nomepc(){ var net = new…
-
2
votes0
answers122
viewsQ: limit the number of characters per line in a multiline-type textbox
I would like in my field to allow up to 47 characters in each line, but I have a problem when the user leaves a line and keeps typing. Because it breaks the line before it completes the 47…
-
1
votes1
answer25
viewsQ: Create a javascript function for all application buttons
Guys, I would like to create a javascript function for all the buttons of the application, IE, every button when it is clicked it will call this function. Note: No need to put the onclick on each…
-
-1
votes2
answers147
viewsQ: Pass values to 99 fields in a loop
I would like to pass values to 99 fields in one loop; For example: for(int i=1; i<= 99 ; i++) { nomedocampo + "i" = "valorqualquer"; }
-
0
votes1
answer80
viewsQ: Align column to right pdfsharp
Good morning, I am using the pdfsharp library, and I want to line up the column for the value on the right. Could you help me, please? Follow the code below. graphics.DrawString(f.ENT_DAELOC, font,…
-
1
votes1
answer55
viewsQ: add blank line to a list
I have a list already with data and I want every 3 lines to add a blank line in this list. To then move to a grid. How can I do that? For now the code is like this: anoanterior =…
-
0
votes1
answer78
viewsQ: How to copy data from one gridview to the other?
how do I copy data from one grid to another added a blank line every two copied data lines? TAB_F_TABELAS_DAL d = new TAB_F_TABELAS_DAL(); var dados =…
-
1
votes1
answer68
viewsQ: Write to txt
Friends, I am trying to generate a txt, in which the user clicks on the button and automatically downloads it. It is already generating txt, but I would like to know how to write in it? string str =…
-
0
votes1
answer174
viewsQ: Save as txt c#
I created a method that saves a txt in the user’s temp folder, but I would like the user to choose where to save to his machine (save as). How could I do that? Below is my code: protected void…
-
0
votes1
answer44
viewsQ: How to create "options" in Select from a spreadsheet?
I wonder if it is possible to generate options dynamically in the selection by C#? For example, I have my selection : <select id="Selecao_itens" multiple="multiple" runat= server size="3"…
-
1
votes2
answers1189
viewsQ: Join several PDF files into one
I am developing an application to join several pdfs in one, I managed to do through two uploads, however, I would like in one upload to be able to select several and unify the pdfs. Could someone…
-
2
votes1
answer131
viewsQ: Generate multiple PDFS via Itextsharp
I am developing an application that builds pdf’s dynamically through the Itextsharp library. It is working and providing the download correctly, but would like to generate a larger amount of…
-
0
votes1
answer203
viewsQ: How to generate multiple PDF dynamically through Itextsharp
I am creating a c# method in which the user enters a data listing and assembles a pdf document for each data entered. I’m using the iTextSharp library. On the first data it generates the PDF as…