how to resize to a custom view in macro

I would like to know how to resize to a custom view in macro.

ex:  in my template I have a custom view called "pleine page" (whole sheet). I use that cause we often put our 1:1 view outside the first sheet for all our .dxf formats.  With another macro I save all my opened files at the same time in the right formats by reading custom properties.

Now I need to save a .jpg of my master drawing but it needs to be fit to the custom view "pleine page" (whole sheet) before saving.

if somebody can write me a exemple of that code I could fit it into my big one

thanks a lot...

SolidworksApi macros