'We assume that the GdViewer1 control has been properly integrated
'and your document has been properly displayed as well.
If (GdViewer1.HScrollVisible = False) OrElse (GdViewer1.VScrollVisible = False) Then
GdViewer1.ScrollBars = True
GdViewer1.ForceScrollBars = True
End If
//We assume that the GdViewer1 control has been properly integrated
//and your document has been properly displayed as well.
if ((GdViewer1.HScrollVisible == false) || (GdViewer1.VScrollVisible == false))
{
GdViewer1.ScrollBars = true;
GdViewer1.ForceScrollBars = true;
}