Page 1 of 1

What replaced OpenDental.SheetUtil.CalculateHeights?

Posted: Wed May 13, 2015 2:24 pm
by wjstarck
What replaced this method in 15.2?

Code: Select all

Method not found: 'Void OpenDental.SheetUtil.CalculateHeights(OpenDentBusiness.Sheet, System.Drawing.Graphics, OpenDentBusiness.Statement, Boolean, Int32, Int32)'.
I had multi-Rx printing on a single piece of paper working quite nicely and now it's broken :twisted:

Re: What replaced OpenDental.SheetUtil.CalculateHeights?

Posted: Thu May 14, 2015 7:09 am
by jsalmon
It's still there, just one more param got added (MedLab object).

Code: Select all

public static void CalculateHeights(Sheet sheet,Graphics g,Statement stmt=null,bool isPrinting=false,int topMargin=40,int bottomMargin=60,MedLab medLab=null){

Re: What replaced OpenDental.SheetUtil.CalculateHeights?

Posted: Thu May 14, 2015 7:23 am
by jsalmon
Your method call should work if you are using visual studio 2010 or greater because the last 5 parameters are "optional arguments".
https://msdn.microsoft.com/en-us/library/dd264739.aspx