What replaced OpenDental.SheetUtil.CalculateHeights?

This forum is for programmers who have questions about the source code.
Post Reply
User avatar
wjstarck
Posts: 936
Joined: Tue Jul 31, 2007 7:18 am
Location: Keller, TX
Contact:

What replaced OpenDental.SheetUtil.CalculateHeights?

Post by wjstarck » Wed May 13, 2015 2:24 pm

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:
Cheers,

Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA

User avatar
jsalmon
Posts: 1553
Joined: Tue Nov 30, 2010 12:33 pm
Contact:

Re: What replaced OpenDental.SheetUtil.CalculateHeights?

Post by jsalmon » Thu May 14, 2015 7:09 am

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){
The best thing about a boolean is even if you are wrong, you are only off by a bit.

Jason Salmon
Open Dental Software
http://www.opendental.com

User avatar
jsalmon
Posts: 1553
Joined: Tue Nov 30, 2010 12:33 pm
Contact:

Re: What replaced OpenDental.SheetUtil.CalculateHeights?

Post by jsalmon » Thu May 14, 2015 7:23 am

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
The best thing about a boolean is even if you are wrong, you are only off by a bit.

Jason Salmon
Open Dental Software
http://www.opendental.com

Post Reply