Workflow Diagram Save to Bitmap

It is possible to save a diagram to a bitmap?

I want to send by code a email with a attached image of the workflow state. Any hint?

Can be done with a TWorkFlowDiagram component? it is possible without the use of TWorkFlowDiagram?

Thanks in advance,

Omar Zelaya

Yes, TWorkflowDiagram is the way to go. You just use a code like this:

      AWorkIns.AssignToDiagram(WorkflowDiagram1, true);

and then ExportAsBMP or ExportAsBPMStream.