Quantcast
Channel: SCN : Unanswered Discussions - SAP Crystal Reports
Viewing all articles
Browse latest Browse all 4814

How can I check Crystal Report's “Allow Field Clipping” option using source code

$
0
0

Do anybody know how to check Crystal Report's "Allow Field Clipping" option using source code?

Please take a look at this picture:

Untitled.jpg

I used this C# code to get NumericFormat of that item.

As you can see that i can Read 5 properties(CurrencySymbolFormat, DecimalPlaces, EnableUseLeadingZero, NegativeFormat, RoundingFormat).

But i can't find "Allow Field Clipping".

 

This is my C# code:


using System;

using System.Windows.Forms;

using CrystalDecisions.CrystalReports.Engine;

using CrystalDecisions.Shared;

 

namespace CheckClippingFields

{

  public partial class Form1 : Form

  {

  public Form1()

  {

  InitializeComponent();

  }

 

  private void Form1_Load(object sender, EventArgs e)

  {

  ReportDocument rpt = new ReportDocument();

  rpt.Load(@"C:\Users\KhaiHoan\Desktop\Report1.rpt");

  NumericFieldFormat numericFormat;

  foreach (FieldObject rptField in rpt.ReportDefinition.ReportObjects)

  {

  if (rptField != null)

  {

  switch (rptField.DataSource.ValueType)

  {

  case FieldValueType.NumberField:

  numericFormat = rptField.FieldFormat.NumericFormat;

  object A = numericFormat.CurrencySymbolFormat;

  object B = numericFormat.DecimalPlaces;

  object C = numericFormat.EnableUseLeadingZero;

  object D = numericFormat.NegativeFormat;

  object E = numericFormat.RoundingFormat;

  break;

  default:

  break;

  }

  } 

  }

  }

  }

}

 

 

Can anybody help me please?


Viewing all articles
Browse latest Browse all 4814

Trending Articles



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