Click here to Skip to main content
15,922,325 members
Home / Discussions / C#
   

C#

 
GeneralRe: db file compare---URGENT Pin
svignesh21-Aug-07 19:01
svignesh21-Aug-07 19:01 
Questioncode Pin
help as an alias20-Aug-07 18:16
help as an alias20-Aug-07 18:16 
AnswerRe: code Pin
Lutosław21-Aug-07 1:00
Lutosław21-Aug-07 1:00 
GeneralRe: code Pin
help as an alias21-Aug-07 1:08
help as an alias21-Aug-07 1:08 
QuestionHow to insert objects to a section in crystal report dynamically? Pin
getnanda@gmail.com20-Aug-07 18:10
getnanda@gmail.com20-Aug-07 18:10 
AnswerRe: How to insert objects to a section in crystal report dynamically? Pin
help as an alias20-Aug-07 18:23
help as an alias20-Aug-07 18:23 
GeneralRe: How to insert objects to a section in crystal report dynamically? Pin
getnanda@gmail.com20-Aug-07 18:27
getnanda@gmail.com20-Aug-07 18:27 
GeneralRe: How to insert objects to a section in crystal report dynamically? Pin
help as an alias21-Aug-07 1:17
help as an alias21-Aug-07 1:17 
if you r pass query(parameters) from the form to show the crystal report directly then i have a code for you that may help you.

<br />
private void AmountDue_Load(object sender, EventArgs e)<br />
        {<br />
            this.Width = 912;<br />
            this.Height = 587;<br />
            ParameterFields Fields = new ParameterFields();<br />
            ParameterField Field = new ParameterField();<br />
            ParameterDiscreteValue DescreateValue = new ParameterDiscreteValue();<br />
            OleDbCommand MyCommand = new OleDbCommand();<br />
            OleDbDataAdapter MyDa = new OleDbDataAdapter();<br />
            DataSet MyDs = new DataSet();<br />
            ReportDocument crReportDocument = new ReportDocument();  <br />
<br />
            mainObj.s = sAmountDue;<br />
            mainObj.choosedata();<br />
            string RecordString = "Select housetype,OwnerName,meternumber,DueAmount from Client order by housetype";<br />
            mainObj.passconn.Open();<br />
            MyCommand.Connection = mainObj.passconn;<br />
            MyCommand.CommandText = RecordString;<br />
            MyCommand.CommandType = CommandType.Text;<br />
            MyDa.SelectCommand = MyCommand;<br />
            mainObj.passconn.Close();<br />
            MyDa.Fill(MyDs);<br />
            string name = "AmountDueCrystalReport";<br />
            string rptPath = Application.StartupPath + "\\" + name + ".rpt";<br />
            if (!System.IO.File.Exists(rptPath))<br />
            {<br />
                throw (new Exception("Enable To Locate File:" + rptPath));<br />
            }<br />
<br />
            crReportDocument.Load(rptPath);<br />
            crReportDocument.PrintOptions.PaperOrientation = PaperOrientation.Portrait;<br />
            crReportDocument.PrintOptions.PaperSize = PaperSize.PaperA4;<br />
            //crReportDocument.PrintOptions.PaperSource = PaperSource.<br />
            crReportDocument.Refresh();<br />
            crReportDocument.SetDataSource(MyDs.Tables[0]);<br />
<br />
            Field.ParameterFieldName = "ColnyName";<br />
            DescreateValue.Value = sAmountDue.ToString();<br />
            Field.CurrentValues.Add(DescreateValue);<br />
            Fields.Add(Field);<br />
            crystalReportViewer1.ParameterFieldInfo = Fields;<br />
            crystalReportViewer1.ShowExportButton = false;<br />
            crystalReportViewer1.ShowGroupTreeButton = false;<br />
            crystalReportViewer1.DisplayGroupTree = false;<br />
            crystalReportViewer1.ShowRefreshButton = false;<br />
            crystalReportViewer1.ReportSource = crReportDocument; <br />
        }<br />



i m using the same code also you must clear the reportsource(property of crystal repoet viewer) from the page design section.

Rose | [Rose]

help as a alias.
Be happy and make others happy.Cheer up...........

Questiondeclaring xmlserializer where typeof is a class derived from arraylist Pin
cyn820-Aug-07 18:04
cyn820-Aug-07 18:04 
AnswerRe: declaring xmlserializer where typeof is a class derived from arraylist Pin
Hessam Jalali20-Aug-07 23:03
Hessam Jalali20-Aug-07 23:03 
AnswerRe: declaring xmlserializer where typeof is a class derived from arraylist Pin
Hessam Jalali20-Aug-07 23:11
Hessam Jalali20-Aug-07 23:11 
GeneralRe: declaring xmlserializer where typeof is a class derived from arraylist [modified] Pin
cyn821-Aug-07 17:01
cyn821-Aug-07 17:01 
GeneralRe: declaring xmlserializer where typeof is a class derived from arraylist Pin
Hessam Jalali22-Aug-07 0:22
Hessam Jalali22-Aug-07 0:22 
GeneralRe: declaring xmlserializer where typeof is a class derived from arraylist Pin
cyn822-Aug-07 0:29
cyn822-Aug-07 0:29 
GeneralRe: declaring xmlserializer where typeof is a class derived from arraylist Pin
Hessam Jalali22-Aug-07 3:21
Hessam Jalali22-Aug-07 3:21 
GeneralRe: declaring xmlserializer where typeof is a class derived from arraylist [modified] Pin
cyn822-Aug-07 21:48
cyn822-Aug-07 21:48 
GeneralRe: declaring xmlserializer where typeof is a class derived from arraylist Pin
Hessam Jalali23-Aug-07 2:15
Hessam Jalali23-Aug-07 2:15 
GeneralRe: declaring xmlserializer where typeof is a class derived from arraylist Pin
cyn823-Aug-07 16:29
cyn823-Aug-07 16:29 
GeneralRe: declaring xmlserializer where typeof is a class derived from arraylist Pin
Hessam Jalali23-Aug-07 23:47
Hessam Jalali23-Aug-07 23:47 
QuestionHow to "ping" command on Mono by C#? Pin
bug_aonz20-Aug-07 17:49
bug_aonz20-Aug-07 17:49 
AnswerRe: How to "ping" command on Mono by C#? Pin
Vasudevan Deepak Kumar20-Aug-07 21:32
Vasudevan Deepak Kumar20-Aug-07 21:32 
GeneralRe: How to "ping" command on Mono by C#? Pin
bug_aonz21-Aug-07 16:44
bug_aonz21-Aug-07 16:44 
QuestionInstalled software List Pin
Jeeva Jose20-Aug-07 17:15
Jeeva Jose20-Aug-07 17:15 
AnswerRe: Installed software List Pin
Scott Dorman20-Aug-07 17:24
professionalScott Dorman20-Aug-07 17:24 
QuestionC# and MATLAB Pin
TriBerryPowerBar20-Aug-07 15:17
TriBerryPowerBar20-Aug-07 15:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.