OnPrint
public override void OnPrint()
{
base.OnPrint();
ShowPrintDialog();
}public virtual void ShowPrintDialog()
{
int nr = this.BusObj.tSet.bel.DefaultViewRows[0].nr;
short typ = this.BusObj.tSet.bel.DefaultViewRows[0].typ;
if (BusObj.dSet.HasChanges())
{
BusObj.Retrieve(typ, nr);
}
this.BusObj.tSet.Args_nr = nr;
this.BusObj.tSet.Args_typ = typ;
object document_type = busBelUtils.Instance.GetBelDescription(typ);
string document_type_string = document_type == null ? string.Empty : document_type.ToString();
string adr1name1 = this.BusObj.tSet.bel.DefaultViewRows[0].adr1name1;
string report_name = string.Format("{0} {1} - {2}", document_type_string, nr, adr1name1);
string hybrid = HybridExtensions.Get("BEL", typ, nr);
ModuleManager.Instance.GetReport(this.Module.ModuleId, this.BusObj.dSet.Args, report_name, hybrid, this as xWindowHandlingObject);
this.BusObj.SetDruckStatus();
}OnPrintSpecificReportArgs
Last updated