or
I would like to limit the number of X-Axis Label Steps to around 3 or 4 labels. The amount of data displayed on the chart can vary from just 5 points to hundreds and the number of points for each Pen can vary significantly.
It is my assumption that the “XAxis.LabelStep” property assumes a constant number of points for each ChartSeriesItemCollection. I had originally set it to
Chart1.PlotArea.XAxis.
But I get a strange group of characters in the upper left portion of the trend and the incorrect number of Labels created. Given my objective, what would be the ideal way to specify the number of Labels for the X-Axis?
I need step by step procedure to create the CrossTab report.
OpenFileDialog openFileDialog1 = new OpenFileDialog();
if (openFileDialog1.ShowDialog() == true)
{
//openFileDialog1.InitialDirectory = "c:\\";
openFileDialog1.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*";
// openFileDialog1.FilterIndex = 2;
// openFileDialog1.RestoreDirectory = true;
// myStream = openFileDialog1.File.OpenRead();
//openFileDialog1.ShowDialog();
System.IO.Stream myStream = openFileDialog1.File.OpenRead();
using (System.IO.StreamReader reader = new System.IO.StreamReader(myStream))
{
// Read the first line from the file and write it the textbox.
tbResults.Text = reader.ReadLine();
}
myStream.Close();
}
BizFramework.Web.Model.PrintableLayout _printableLayout = new PrintableLayout();
// _printableLayout.PrintableLayoutID = 90;
_printableLayout.DocumentName = "Invoice";
_printableLayout.SerializedData = tbResults.Text;
_printableLayout.CreatedBy = "BAOwner";
_printableLayout.CreatedDateTime = System.DateTime.Now;
_printableLayout.ModifiedBy = "BAOwner";
_printableLayout.ModifiedDateTime = System.DateTime.Now;
dcBusinessAccountingContext.PrintableLayouts.Add(_printableLayout);
dcBusinessAccountingContext.SubmitChanges();