using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Windows.Forms;
using System.Drawing;
using System.Data;
using FastReport;
using FastReport.Data;
using FastReport.Dialog;
using FastReport.Barcode;
using FastReport.Table;
using FastReport.Utils;
namespace FastReport
{
public class ReportScript
{
private string[] monthNames = new string[] {
"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };
private void Cell4_BeforePrint(object sender, EventArgs e)
{
// Cell4.Value is the month number. This property is of System.Object type,
// so we have to typecast to int.
Cell4.Text = monthNames[(int)Cell4.Value - 1];
}
}
}
|