Perhaps I just am horrible at searching, but I can't seem to find any docs on the full CorelDraw API. For example, if I record a macro to export an AI file, I see calls to ActiveDocument and ExportFilter:
Dim expflt As ExportFilter
Set expflt = ActiveDocument.ExportEx("ExportTest001.ai", cdrAI, cdrAllPages, expopt)
Yes, I can not find one entry in the API docs linked from this area:
https://community.coreldraw.com/sdk/api/draw/23.5
I can't find ANY info at all about an object named ActiveDocument and the info provided for ExportFilter is woefully incomplete:
https://community.coreldraw.com/sdk/api/draw/23.5/c/exportfilter
I see nothing that documents all the various properties that the macro recorder seems to know about:
With expflt .Version = 10 ' FilterAILib.aiVersionCS6 .TextAsCurves = False .PreserveTransparency = True .ConvertSpotColors = False .SimulateOutlines = False .SimulateFills = False .IncludePlacedImages = True .IncludePreview = True .EmbedColorProfile = True .Finish End With
With expflt
.Version = 10 ' FilterAILib.aiVersionCS6
.TextAsCurves = False
.PreserveTransparency = True
.ConvertSpotColors = False
.SimulateOutlines = False
.SimulateFills = False
.IncludePlacedImages = True
.IncludePreview = True
.EmbedColorProfile = True
.Finish
End With
Am I missing something? Or is this really all there is?
J^2
I find that the old Help file is much more useful for finding examples of how something works. Not to mention it is much faster for searching. So a quick example, if I search for ExportFilter here is one section it finds:
And here is one item you find when searching ActiveDocument:
Which you can see is "As Document", so if you click on Document you can then get all the Properties, Method and Events.
Here is a link to a zip file that you can download the old help file:
CorelDRAW Object Model
-Shelby