So I have an addin that is doing some logic based off of PageHeight. This works fine on my laptop that i've developed on, and everyone i've deployed this addin to has not had this issue. On my newly built PC though when I do the below logic:
_pageHeight = Convert.ToDouble(_page.PageSheet.Cells["PageHeight"].Formula.Replace(" mm.", ""));
I'm getting an error because .Formula is returning the value in inches. The strange thing is, i'm opening up identical files on both my working laptop and non-working desktop, and when inspecting the page on the desktop it shows as "PageHeight = 210 mm"
Any ideas what I am doing wrong?