| Name | Type | Description |
|---|---|---|
| FileName |
String
|
|
| Filter | ||
| Range | Specifies the pages that are exported, accepting a value of cdrExportRange. |
|
| Options | Specifies the Save options of the exported document. |
|
| PaletteOptions | Specifies the set of options to apply when exporting to a paletted bitmap. |
Sub Test()
Dim d As Document
Dim s As Shape
Dim opt As New StructExportOptions
Dim pal As New StructPaletteOptions
Dim Filter As ExportFilter
Set d = CreateDocument
Set s = d.ActiveLayer.CreateEllipse2(4, 5, 2)
s.Fill.ApplyFountainFill CreateRGBColor(255, 0, 0), CreateRGBColor(0, 0, 0)
opt.AntiAliasingType = cdrNormalAntiAliasing
opt.ImageType = cdrRGBColorImage
opt.ResolutionX = 72
opt.ResolutionY = 72
pal.PaletteType = cdrPaletteOptimized
pal.NumColors = 16
pal.DitherType = cdrDitherNone
Set Filter = d.ExportEx("C:\Temp\Doc.gif", cdrGIF, cdrCurrentPage, opt, pal)
If Filter.ShowDialog() Then
If Not Filter.Interlaced Then
MsgBox "Interlaced is not specified... Fixing this."
Filter.Interlaced = True
End If
Filter.Finish
Else
MsgBox "Export canceled"
End If
End Sub