Procedure
Is there more information for the aFormat and aListofParameters when using the
ExportToFile request?
Cause:
Using the online help hypertext jumps only states that the aFormat is a String, and aListofParameters is a List, but gives no further information or examples.
Answer:
The aFormat portion of the request is a String of the type of file to be exported, such as JPEG. The aListOfParameters portion of the request is a list for the resolution of the exported file. The following is all the current formats and their associated resolutions.
Syntax
aLayout.ExportToFile (aFileName, aFormatString, aListOfParameters)
Example code using ExportToFile:
theLayout = av.getActiveDoc
theLayout.ExportToFile ("c:\temp\myimage.ps".AsFileName, "PostScript New
(EPS)", {600})
aFormatString - aListOfParameters
Placeable WMF - {72,true} or {72,false} or {96,true} or {96,false}
or
{120,true} or {120,false} or {144,true} or
{144,false}
Windows MetaFile - {72,true} or {72,false} or {96,true} or {96,false}
or
{120,true} or {120,false} or {144,true} or
{144,false}
Windows Bitmap - {72} or {96} or {120} or {144}
PostScript (EPS) - {}
PostScript New (EPS) - {300} or {360} or {600} or {720}
Adobe Illustrator - {}
CGM Binary - {300} or {360} or {400} or {600} or {720}
CGM Character - {300} or {360} or {400} or {600} or {720}
CGM Clear Text - {300} or {360} or {400} or {600} or {720}
JPEG - {72,20} or {72,40} or {72,60} or {72,80} or {72,100}
or
{96,20} or {96,40} or {96,60} or {96,80} or {96,100}
or
{120,20} or {120,40} or {120,60} or {120,80} or
{120,100} or
{144,20} or {144,40} or {144,60} or {144,80} or
{144,100}