yumo
Explore posts from servers❔ Exporting data in c# winforms button goes wrong
Im having a problem exporting some data from my dgv, heres my code:
tha's c# code to export all data visible in the datagridview, my date is like 10-05-2025 but sometimes its exporting with "/" instead of "-" and its changing the date with the month, im from Portugal and i cant figure this out i tried a lot of different things and nothing happend, sometimes some dates come with that , and the others correctly( i also search in the DB if i was inserting the data wrong but im not).
Would love some help thanks
https://pastebin.com/Wy0W9kD9
6 replies
❔ Missing Reference
This is my code:
And this is the error that's giving:
Severity Code Description Project Project Classification File Line Suppression Status
Error CS1061 '_Worksheet' does not contain a definition for "DefaultRowHeight" and no extension method "DefaultRowHeight" could be found that accepts a first argument of type '_Worksheet' (are you forgetting to use a directive or an assembly reference? ) PontosAbertos 1 C:\Users\infprog\Desktop\PA\PontosAbertos\Acoes.cs 299 Active
But i am using: using Excel = Microsoft.Office.Interop.Excel;
2 replies
❔ login system saves data from user
Hi this is the code that i have and i dont know why but its showing me the username and not the realname on the label, why?
Button on Form1 to check if user credentials are correct and if user exists open MainMenu and display the realname of the user logged in.
15 replies
❔ sql statment Count *
Why is this not displaying on my textbox
txtEnsaio
the max number of Ensaios
that are in the table tbl_ensaios
with the id that's on the txtIdFerramenta
?
i want to get the id from the txtIdFerramenta and get the max number of rows with that same id on the tbl_ensaios.
This is just giving me 0.
I run this sql statment on a query on the database and gets me the result6 replies
❔ Textbox multi data
Im trying to use my barcode reader and its going alright, but i want to make a textbox that with the data that is filled with , it would insert into my mysqlce database in different columns, like these RH each space it gives to go into another row it would create a new row
https://gyazo.com/6703c423c7a125f4882a0d408aa2cc80
5 replies