Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9052

Re: How to get Date format and Date Order?

$
0
0

Hi Mani,

 

Do you mean date format and not date order? Data order to me means you want to sort the date field ascending or descending... It's the location date format you want correct?

 

Run in debug mode and you'll see the field type:

 

btnReportObjects.Text = "";

flcnt = 0;

 

CrystalDecisions.ReportAppServer.ReportDefModel.ReportObjects rptObjs;

//rptObjs = rptClientDoc.ReportDefController.ReportObjectController.GetReportObjectsByKind(CrReportObjectKindEnum.crReportObjectKindField);

rptObjs = rptClientDoc.ReportDefController.ReportObjectController.GetAllReportObjects();

 

foreach (CrystalDecisions.ReportAppServer.ReportDefModel.ReportObject rptObj1 in rptObjs)

{

    switch (rptObj1.Kind)

    {

        case CrReportObjectKindEnum.crReportObjectKindField:

            CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject fldObj1;

            fldObj1 = (CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject)rptObj1;

                               

            textBox1 = fldObj1.Name.ToString();

            textBox1 += " -> ";

            textBox1 += fldObj1.DataSourceName.ToString();

            btnReportObjects.Text += textBox1;

            btnReportObjects.AppendText("\n");

            ++flcnt;

            btnCount.Text = flcnt.ToString();

            break;

....

 

 

FieldValueType = 15 means it's a Dateformat:

 

 

Not enough info to say how to do all of this from you but this should give you enough info to get.

 

From above you should be able to figure out what it is you want...

 

Don


Viewing all articles
Browse latest Browse all 9052

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>