You almost had it! You can improve this, but the following code worked fine:
FDlog.CheckName$=$DialogBox.ExportImage;
FDlog.CheckStatus=Image.ShowOptions;
FDLOG.default$=%H;
FDlog.UseGroup(Image);
Image.GetExtList(z,e);
FDlog.UseType(%z);
if(FDlog.SaveAs(a)) return 1;
%t=FDlog.DefTypeExt$;
%B=FDLOG.path$;
document -e p {
getnamedwin %h; //activates one graph
run.section (File,Init);
image.FileName$=%b%h.%t;
image.ShowOptions=0;
image.export.pageDPI(%t,300,24,2); };
When the file name is asked don't pay much attention to it and leave the default one: just select the destination folder and the file extension, that will determine the final image type.
Jose Viņa, Origin WebRing member