Click here to Skip to main content
15,892,674 members

Comments by MeftahDAKHEEL (Top 51 by date)

MeftahDAKHEEL 25-Sep-15 7:21am View    
Yes i have the crystal report installed and the crystalReportViewer dragged on the form, for your information it is working on another project i have made a year ago, but now does not work for me.

the error: is red underline error under crystalReportViewer1 r=new crystalReportViewer();

Error 1 'WStoreSystem.Print.crystalReportViewer1' is a 'field' but is used like a 'type'
MeftahDAKHEEL 27-Jun-15 13:44pm View    
Oh! thanks a lot i will do so, it is the only way i see to avoid duplication at least for me as beginner programer, thanks again
MeftahDAKHEEL 25-Jun-15 0:04am View    
Dear OriginalGriff,

I am so happy to have a great programing support from Codeproject, an lots of thanks to to you specially...
i need your value advice for my, as you know i am new programer, i am making this project as first complete project (sales project).
i have to tables (Invoice and Invoice details) i want the system when user selling an item to create new invoice number, date and total amount in invoices table, and fill invoice details on invoice details table, i have done this when only one item and its working perfect, but when i add more items it duplicates the invoice number in the invoices table, what i need just to update the amount there and the details its on invoice details table,
i need an idea please

Best regards
Meftah
MeftahDAKHEEL 20-Jun-15 23:12pm View    
this code in the class, for updating
MeftahDAKHEEL 20-Jun-15 23:11pm View    
public void updateinvoNumber()
{
using (OleDbConnection conn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|StoreSys.mdb"))
using (OleDbCommand cmd = new OleDbCommand("UPDATE [invoices] SET [InvoiceNo]=?, [Total] = ?,[Date] = ? WHERE [InvoiceNo] = ?", conn))
{
cmd.Parameters.AddWithValue("p0", InvoiceNo);
cmd.Parameters.AddWithValue("p1", Total);
cmd.Parameters.AddWithValue("p2", Date);



cmd.ExecuteNonQuery();
conn.Close();
}
}