'We assume that the GdViewer1 control has been properly integrated
'and your document has been properly displayed as well.
Dim left As Single = 0, top As Single = 0, width As Single = 0, height As Single = 0
GdViewer1.GetDisplayedAreaInches(left, top, width, height)
MessageBox.Show("Page width (X): " + (GdViewer1.PageWidth / 96).ToString() + vbCrLf + "Page height (Y): " + (GdViewer1.PageHeight / 96).ToString() + vbCrLf + vbCrLf +
"Displayed area:" + vbCrLf + " top-left point (X,Y): " + left + ", " + top + vbCrLf + " width: " + width + " height: " + height, "GdViewer.GetDisplayedAreaInches")
//We assume that the GdViewer1 control has been properly integrated
//and your document has been properly displayed as well.
float left = 0, top = 0, width = 0, height = 0;
GdViewer1.GetDisplayedAreaInches(ref left, ref top, ref width, ref height);
MessageBox.Show("Page width (X): " + (GdViewer1.PageWidth / 96).ToString() + "\nPage height (Y): " + (GdViewer1.PageHeight / 96).ToString() + "\n\n" +
"Displayed area:\n top-left point (X,Y): " + left + ", " + top + "\n width: " + width + " height: " + height, "GdViewer.GetDisplayedAreaInches");