Could I have the following hook in the middle of pd2_PrintPage method on ContrChart (should be after about line 9270):
yPos+=(int)g.MeasureString(text,headingFont).Height;
text = PatCur.GetNameFL();//name
if(g.MeasureString(text,subHeadingFont).Width>700) {
//extremely long name
text=PatCur.GetNameFirst()[0]+". "+PatCur.LName;//example: J. Sparks
}
Code: Select all
//this hook changes the printed header on the top of printed progress notes
string[] headerText = {text};
Plugins.HookAddCode(this,"ContrChart.pd2_PrintPage_middle",PatCur,e,g,headerText);
text = headerText[0];
//end hook
text="Page "+(pagesPrinted+1);
g.DrawString(text,subHeadingFont,Brushes.Black,800-g.MeasureString(text,subHeadingFont).Width,yPos);
yPos+=30;
If I could have it in OD 14.3 and later that would be super

Thanks,