I have a custom docker that export PDF via PublishToPDF method.
When I call this UI was blocked untill PDF exported.
Can I change this as Background Task as File->Publish to PDF do.
You try this?
community.coreldraw.com/.../background-task-c-export-to-jpg-exemple-vsta-macro-api-19
Thanks for Reply
I have implement your suggestion to my code but that gives me error.
Sub New(ByVal _corelApp As Corel.Interop.VGCore.Application) InitializeComponent() Me.corelApp = _corelApp If bgTask Is Nothing Then bgTask = New BGTask(corelApp) bgTask.RunningChange += AddressOf BgTask_RunningChange
End If End Sub
Error 'Public Event RunningChange()' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event.
If I remove line "bgTask.RunningChange += AddressOf BgTask_RunningChange" then error was cleared but file is not exported in background task.