I am using this piece of code for zooming in an object until its border
rs.Command('_-SetZoomExtentsBorder _ParallelView=1 _Enter')
and then exporting it to an image
rs.Command("_-ViewCaptureToFile " + chr(34) + imagePath +chr(34) + " _EnterEnd")
the problem is that it zooms only 2 sides and I would like to zoom all 4 sides of the picture.
How to do that?