There is no build-in function for this. However, you can get the page resolution (in PPI) with LabTalk scripts page.resX (Horizontal resolution) and page.resY (vertical resolution). Then you can convert it from mm to pixels with the calcualtion of mm -> inchs -> pixels.