How to save active document as pngfile without license key in c#?

How to save active document as pngfile without license key in c#?

SolidworksApi/macros