Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
N

NiloofarNoroozi

@NiloofarNoroozi
About
Posts
21
Topics
12
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • The parameter is incorrect
    N NiloofarNoroozi

    i have error in this line: paramField.Name = "@NoPersoneli"; thanks a lot

    C# help

  • The parameter is incorrect
    N NiloofarNoroozi

    program run when form opens i see this error

    C# help

  • The parameter is incorrect
    N NiloofarNoroozi

    hi i use these codes for reporting my proc:

    create proc Cpost
    @nopersoneli int
    As
    Select p.fname,p.lname,p.NoPersoneli,po.name from personal p
    Join postpersonal pp
    On p.NoPersoneli=pp.Cpersonal
    Join post po
    On po.code=pp.vpost

    ReportDocument reportDocument = new ReportDocument();
    ParameterField paramField = new ParameterField();
    ParameterFields paramFields = new ParameterFields();
    ParameterDiscreteValue paramDiscreteValue = new ParameterDiscreteValue();
    paramField.Name = "@NoPersoneli";
    paramDiscreteValue.Value = "45";
    paramField.CurrentValues.Add(paramDiscreteValue);
    paramFields.Add(paramField);
    crystalReportViewer1.ParameterFieldInfo = paramFields;
    reportDocument.Load(@"C:\Documents and Settings\Administrator\Desktop\VEZARAT\VEZARAT\PostCrystalReport.rpt");
    reportDocument.SetDatabaseLogon("", "", "niloofar\\i2", "vezaratekar", false);
    crystalReportViewer1.ReportSource = reportDocument;

    error:The parameter is incorrect please help to me thanks a lot

    C# help

  • Load report failed.
    N NiloofarNoroozi

    i have problem in crystalreport. error:Load report failed.

    Vpost vpost = new Vpost();
    int nopersoneli;
    int.TryParse(vpost.txtNoPersoneli.Text.ToString(), out nopersoneli);
    ReportDocument reportDocument = new ReportDocument();
    ParameterField paramField = new ParameterField();
    ParameterFields paramFields = new ParameterFields();
    ParameterDiscreteValue paramDiscreteValue = new ParameterDiscreteValue();
    paramField.Name = "@nopersoneli";
    paramDiscreteValue.Value = nopersoneli;
    paramField.CurrentValues.Add(paramDiscreteValue);
    paramFields.Add(paramField);
    crystalReportViewer1.ParameterFieldInfo = paramFields;
    ** reportDocument.Load("PostCrystalReport1.rpt");** reportDocument.SetDatabaseLogon("", "", "niloofar\\i2", "vezaratekar", false);
    crystalReportViewer1.ReportSource = reportDocument;

    C# help

  • reporting of proc
    N NiloofarNoroozi

    thanks for your answer but i have problem about to send parameter to proc please send me 1 or 2 example i need it thank you very much

    C# database sql-server sysadmin tutorial question

  • reporting of proc
    N NiloofarNoroozi

    hi do you have any example that to report(crystalreport) from proc(sql server 2005)? thanks a lot

    C# database sql-server sysadmin tutorial question

  • restore
    N NiloofarNoroozi

    hi i use these code for restore

             this.openFileDialog1.ShowDialog();
             if ((this.openFileDialog1.FileName != "") && (this.openFileDialog1.FileName!="openFileDialog1"))
             {                
                 try
                 {
    
                     filename = openFileDialog1.FileName;
    
                     SqlConnection SqlCon = new SqlConnection();
                     SqlCon.ConnectionString = global::project.Properties.Settings.Default.dabirkhanehConnectionString;
                     SqlCommand SqlCom = new SqlCommand();
                     SqlCom.Connection = SqlCon;
    
                     SqlCon.Open();
                     SqlCom.CommandText ="ALTER DATABASE dabirkhaneh SET SINGLE\_USER WITH ROLLBACK IMMEDIATE" +" USE master; RESTORE DATABASE dabirkhaneh FROM DISK =N'"+filename+"'";
                     SqlCom.Connection = SqlCon;
                     SqlCom.ExecuteNonQuery();
                     SqlCon.Close();
    
                    // \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*//
                     SqlCon.Open();
                     SqlCom.CommandText ="ALTER DATABASE dabirkhaneh SET MULTI\_USER ";
                     SqlCom.Connection = SqlCon;
                     SqlCom.ExecuteNonQuery();
                     SqlCon.Close();
                     MessageBox.Show("بازیابی با موفقیت انجام شد");         
                 }
                 catch
                 {
                     MessageBox.Show("بازیابی با موفقیت انجام نشد");
                 }
             }
    

    but i have error; The tail of the log for the database "vezaratekar" has not been backed up. Use BACKUP LOG WITH NORECOVERY to backup the log if it contains work you do not want to lose. Use the WITH REPLACE or WITH STOPAT clause of the RESTORE statement to just overwrite the contents of the log. RESTORE DATABASE is terminating abnormally. Changed database context to 'master'. please help thanks

    C# help database

  • problem in input
    N NiloofarNoroozi

    txtNoPersoneli forexample=45

    C# help question

  • problem in input
    N NiloofarNoroozi

    hi i have problem with this code objCommand.Parameters["@nopersoneli"].Value = Int32.Parse(vpost.txtNoPersoneli.Text); :error Input string was not in a correct format why? please help me

    C# help question

  • use control in other form
    N NiloofarNoroozi

    i change to public,but yet i can not use that

    C# question

  • use control in other form
    N NiloofarNoroozi

    how can i use txtNoPersoneli when this is in other form?

    C# question

  • problem in code
    N NiloofarNoroozi

    hi when i run this code this generate error why? objCommand.Parameters.Add("@nopersoneli", SqlDbType.int).Value =int.parse(txtNoPersoneli.text); thanks a lot

    C# help question

  • report of proc
    N NiloofarNoroozi

    Hi I use proc for reporting create proc Cpost @nopersoneli int as select p.Fname ,p.lname ,p.NoPersoneli,po.[name] from personal p join postPersonal pp on p.NoPersoneli=pp.CPersonal join post po on po.code=pp.CPost where p.NoPersoneli=@nopersoneli But I don’t understand How I write code? I made postdataset.xsd and I fill by result of proc.and then I made postcrystalReport.rpt ,I have one form include of CrystalReportViewer1 that ReportSource=postCrystalReport Please help me about writing code Thanks a lot

    C# help question

  • connect to dataase
    N NiloofarNoroozi

    thank you very much

    C# database question sql-server sysadmin tutorial

  • connect to dataase
    N NiloofarNoroozi

    hi do you have any article and example about connect to the database(sql server)? plaese learn to me how can i connect textbox to query? thanks

    C# database question sql-server sysadmin tutorial

  • dataset,dataadapter
    N NiloofarNoroozi

    but i have one table and 2 query now do i need one dateset?

    C# question database help

  • dataset,dataadapter
    N NiloofarNoroozi

    Hi I have 2 queries,1 query for datagrid anad the other for textbox in one form. How can I use dataset,dataAdapter,dataview…? Do I need one dataset or two? Please help me Thank you very much

    C# question database help

  • time
    N NiloofarNoroozi

    hi how can i show time(now)in lable? please describe complete thanks a lot

    C# question

  • connection string
    N NiloofarNoroozi

    thank you very much

    Database database help tutorial question

  • connection string
    N NiloofarNoroozi

    I have 2 instance. i used this: Driver={SQL Native Client};Server=myServerName\theInstanceName;Database=myDataBase;Trusted_Connection=yes; but i have a problem yet. my eroor: recognize escape sequence help me please

    Database database help tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups