Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C# (http://www.go4expert.com/forums/c-sharp/)
-   -   how to connection crystal report in c# 2010 (http://www.go4expert.com/forums/connection-crystal-report-c-sharp-2010-t28429/)

HKen 22May2012 07:20

how to connection crystal report in c# 2010
 
1.how to connection crystal report in c# 2010?
2.How to pass parameters to pass parameters to Crystal Reports?
3.How to batch to pass parameters and not the preview mode ?

thanks

pein87 28May2012 23:02

Re: how to connection crystal report in c# 2010
 
You need to download crystal reports separately and install it. I've never used it before but I do know its not included and needs to be downloaded. Once you do it will show as a template when you create a new project.

Sirkrna 20Aug2012 14:09

Re: how to connection crystal report in c# 2010
 
connection crystal report in c# 2010, if it can help you:
Code:

string Etype;
string checkBox;

CrystalDecisions.Shared.ParameterDiscreteValue objParameterDiscreteValue = new
CrystalDecisions.Shared.ParameterDiscreteValue();
CrystalDecisions.Shared.ParameterField objParameterField = new
CrystalDecisions.Shared.ParameterField();
CrystalDecisions.Shared.ParameterFields objParameterFields = new
CrystalDecisions.Shared.ParameterFields();

public EquipmentReportTypeByType(string eType, string CheckBox)
        {
            InitializeComponent();
            Etype = eType;
            checkBox = CheckBox;
            if (checkBox == "Type By Type")
            {
              crystalReportViewer1.ReportSource = new ReportTypeByType();
                objParameterDiscreteValue.Value = Etype;
                objParameterField.ParameterFieldName = "@EType";
                objParameterField.CurrentValues.Add(objParameterDiscreteValue);
                objParameterFields.Add(objParameterField);
                crystalReportViewer1.ParameterFieldInfo = objParameterFields;
                crystalReportViewer1.Show();
            }

        }



All times are GMT +5.5. The time now is 11:49.