Quantcast
Channel: CSharp Forum Latest Questions
Viewing all 32756 articles
Browse latest View live

sql developer

$
0
0
working as sql server developer since 7-8 yrs...but have limited exposure to technology, single handedly implemeted complex business rule in stored procedure.... not getting much opportunity

Fire JavaScript function on timer's Tick event

$
0
0
Hello,

I want to fire javascript function on Timer's Tick event.
Actually, I am trying to do as following,

Check validation in JS function when timer get Click and then if validation passed then proceed to fire server Function.


Thnaks...

C#.net subject- I want to set bold property in C#.NET

$
0
0
How we can set bold font property  in printview in c#.net?

Error exporting datagridview to Excel

$
0
0
Hello all , i need help with a code that export datagridview to excel
So my problem is that when i click in the export button it just show the columns name and not the data that is on the datagridview.

Here is my code

public static void ExportDataGridViewTo_Excel12(DataGridView itemDataGridView)
        {
            Excel_12.Application oExcel_12 = null;                //Excel_12 Application
            Excel_12.Workbook oBook = null;                       // Excel_12 Workbook
            Excel_12.Sheets oSheetsColl = null;                   // Excel_12 Worksheets collection
            Excel_12.Worksheet oSheet = null;                     // Excel_12 Worksheet
            Excel_12.Range oRange = null;                         // Cell or Range in worksheet
            Object oMissing = System.Reflection.Missing.Value;

            // Create an instance of Excel_12.
            oExcel_12 = new Excel_12.Application();

            // Make Excel_12 visible to the user.
            oExcel_12.Visible = true;

            // Set the UserControl property so Excel_12 won't shut down.
            oExcel_12.UserControl = true;

            // System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo("en-US");

            // Add a workbook.
            oBook = oExcel_12.Workbooks.Add(oMissing);

            // Get worksheets collection 
            oSheetsColl = oExcel_12.Worksheets;

            // Get Worksheet "Sheet1"
            oSheet = (Excel_12.Worksheet)oSheetsColl.get_Item(1);

            // Export titles
            for (int j = 0; j < itemDataGridView.Columns.Count; j++)
            {
                oRange = oSheet.Cells[1, j + 1] as Excel_12.Range;
                oRange.Value2 = itemDataGridView.Columns[j].HeaderText;
            }

            // Export data
            for (int i = 0; i < itemDataGridView.Rows.Count - 1; i++)
            {
                for (int j = 0; j < itemDataGridView.Columns.Count; j++)
                {
                    oRange = oSheet.Cells[i + 2, j + 1] as Excel_12.Range;
                    oRange.Value2 = itemDataGridView.Rows[i].Cells[j].Value;

                }
            }

            // Release the variables.
            //oBook.Close(false, oMissing, oMissing);
            oBook = null;

            //oExcel_12.Quit();
            oExcel_12 = null;

            // Collect garbage.
            GC.Collect();
        }
 

ADD and Retrieve IMAGES from sql server 2008 in datalist c#

$
0
0
i need code to insert images in database and retrieve from database in to datalist .. so give the full code ...
thank in advance...

Managing Opening and Closing Balances in Accounting SW

$
0
0
Hi
I am developing an accounting software. It contain the most important part of giving ledger of customer or ask for ledger from supplier or check the stock at any time of FY year.
When i do this i have to show opening balance of customer.  ( if the ledger is from suppose 1st June till 31st July) then i will have to show the opening balance on 1st of June of that customer and from there on i will have to show the sales he made on left and payment made of right and finally at the bottom, its calculation with current balance. How i should calculate the opening balance on 1st June. This is making me crazy. As the same things i will have to adopt in different places like showing current stock, showing stock at particular month.

So please give me some advices how should i maintain the balance or calculate the balance, do i have to make a table and save the everday balances or any other thing, kindly please give some tables structure along with some description.
Thanking millions in advance

saving record with a same name but different id in php mysql

$
0
0
hi, im new at php and mysql stuff


i have a question regarding php and mysql database

how do i insert a record in the database with a same name but different id?

for example, a name "john" with an id of "123" and the other name also "john" but the id is "456". the id are different but the name is the same.

can anyone help me please..


thanks in advance!

Extra page issue in rdlc Main report with 2 sub reports

$
0
0

Hi,

     I have set everything which need to be done to avoid extra page issue in rdlc, that is all Margins 0in and Width 8.5in and Height 11 in. And I resolved extra page issue in all rdlcs, but I have struck with one Rdlc which contains 2 subreports. Its giving 2 empty pages, then if I increased its height to 14in, instead of 2 extra pages I am getting only one Empty(extra) Page. Kindly help me to resolve this issue. I am unable to resolve this since morning.


piece of code does not work

$
0
0
Why does this piece of code does not work?
it is supposed to be a "random walk". and I should not be using any methods or classes. just branching, looping and arrays.
I have no errors from the compiler but when I try to run the code console appears and then disappears before I can do anything.

static void Main(string[] args)
        {
            Random randomObject = new Random();
            int randomDirection;
            int row=1;
            int col=1;
            while (true)
            {
                int n;
                int row = 1;
                int col = 1;
                Console.WriteLine("Enter the number of steps: ");
                n = Convert.ToInt32(Console.ReadLine());
                for (int i = 0; i < n; i++)
                {
                    randomDirection = randomObject.Next(1, 5);
                    if (randomDirection == 1 && row > 0 && row < 10)
                        row++;
                    else if (randomDirection == 2 && row > 0 && row < 10)
                        row--;
                    else if (randomDirection == 3 && col > 0 && col < 10)
                        col++;
                    else if (randomDirection == 4 && col > 0 && col < 10)
                        col--;
                    else
                        i--;
                }
                Console.WriteLine("You have walked in row: " + row);
                Console.WriteLine("You have walked in col: " + col);
                Console.WriteLine("");
            }
            Console.ReadKey();
        }

Sites for selling applications

$
0
0
Hello,

I am looking for a website where I could sell some applications I made with C#. Thanks.

C application update for mysql In C

$
0
0
C applicationupdateformysql database

1)It must allowmarkingas valideach vehiclethrough a function createdfor this purpose,and that willchange the valueof the field"valid"for
"1"in the tableobjects.

2)It must alloweach vehiclemarkingas invalidthrough a function createdfor this purpose,and that willchange the valueof the field"valid"for
"0"in the tableobjects.

3)Mustdisplay a menuthat allowstoidentify whichvehiclethat want to mark asvalid or invalid

4)One of theoptions in this menushould becheck / uncheckall vehiclesof once.

Apply theme dynamically using profile

$
0
0
I have taken a dropdownlist in which there are number of options of theme like select theme, classic, professional etc. I have also implemented role based security. now what i want is to apply theme dynamically using profile.

Log Files in .NET

$
0
0
Hi all,

I need help in ASP.NET and Silverlight applications.

How can we keep a track of all log files in .NEt and Silverlight applications?

Just like there are error logs in Windows and Microsoft VS2010 and other versions.

Can anyone please explain the concept of log files and its implementation.

Thanks all in advance..

spring framework in my eclipse

$
0
0
how to set spring framework in my eclipse?

edit And Delete linkButton for datalist

$
0
0
i need Code for edit and delete link button . which should perform on specific single row,..

and if i clicked on edit all field displayed in specific text boxes...


thanks  you in advance,,


wpf

$
0
0


How can make a crystal report with multiple dataset frm the database in wpf?
and how will get the total of a coulumn from the dataset and i want to display the total at the bottom of the crystal report 

add events to calendar control in asp.net

$
0
0
i want to add events to calendar control dynamically and show events on that particular date anyone knows how to do this?please help me

How to Rotate Image

$
0
0
Dear All,

How to rotate image dynamically and mannualy.

asp.net web pages , web forms and mvc

$
0
0
plz tell me sir and i m fresh and i m using asp.net for web development ,there are three types like  web pages,web forms and mvc so kindly which one is good for web development and tell me what is different between they both web pages,web forms and mvc..thank you

ODBC Error Office 2013 Windows 8 64 bits

$
0
0
I am developing an C# .Net application that uses an odbc driver to make queries into an excel sheet. That application had been working for several years now. Recently a problem occured when i tryed to install that app on a 64 bits Windows 8 pc with 32 bits Excel 2013. On Visual studio Build Properties of my app the platorm target is x86. On the machine is instaled the Access DB Engine 2010 and also the Service pack 1 both for 32 bits. At runtime the the error is the following:

ERROR [HY000][Microsoft][ODBC ExcelDriver]Your network access was interrupted.Tocontinue, close the database, and then open it again.
ERROR [IM006][Microsoft][ODBC DriverManager]Driver's SQLSetConnectAttr failed
ERROR [HY000][Microsoft][ODBC ExcelDriver]Your network access was interrupted.

I have already tried to change the platform target to x64 and install the x64 driver and respective sp1.

Using that configuracion the error is:

ERROR [HY000][Microsoft][ODBC ExcelDriver]General error Unable to open registry key Temporary(volatile)Ace DSN for process 0xf04Thread0x13cc DBC 0xbf089b8Excel'.
ERROR [IM006][Microsoft][ODBC DriverManager]Driver's SQLSetConnectAttr failed
ERROR [HY000][Microsoft][ODBC ExcelDriver]General error Unable to open registry key Temporary(volatile)Ace DSN for process 0xf04Thread0x13cc DBC 0xbf089b8Excel'.
ERROR [HY000][Microsoft][ODBC ExcelDriver]Your network access was interrupted.Tocontinue, close the database, and then open it again.
ERROR [HY000][Microsoft][ODBC ExcelDriver]General error Unable to open registry key Temporary(volatile)Ace DSN for process 0xf04Thread0x13cc DBC 0xbf089b8Excel'.
ERROR [HY000][Microsoft][ODBC ExcelDriver]General error Unable to open registry key Temporary(volatile)Ace DSN for process 0xf04Thread0x13cc DBC 0xbf089b8Excel'.
ERROR [HY000][Microsoft][ODBC ExcelDriver]Your network access was interrupted.Tocontinue, close the database, and then open it again.

I am facing that problem for several weeks now and can't find a solucion. Anyone with a similar issue may help me? Thanks in advance.

Viewing all 32756 articles
Browse latest View live