none
Save WF4 Workflow Definition to Image Using Code with out showing image using wpf

    Question

  • http://blogs.msdn.com/b/flow/archive/2011/08/16/how-to-save-wf4-workflow-definition-to-image-using-code.aspx

    Above forum shows how to save a work flow definition using image. In that  following steps are using 

    1. Create a workflow designer
    2. Load the workflow definition which you want to save to an image
    3. Make sure the workflow designer is drawn by WPF (basically putting it into a visible UI control)
    4. Capture an image of the workflow definition
    5. Save the image to a file
    6. Close the workflow designer

    My question is it possible to create work flow Definition image without creating with out loading to WPF

    as i need to create a dll with which i have to create image ..

    Is it possible ..

    Please give  reply urgent...

    Thanks in advance

    Thursday, April 12, 2012 9:46 AM

Answers

  • Hi,

    Since the function depends on drawing, I afraid you can't do it without loading workflow to WPF. However, you can open a window in your assembly, load the workflow designer and draw the workflow, then save it to an image, close the window.

    • Marked as answer by Syam S Wednesday, April 18, 2012 8:01 AM
    Monday, April 16, 2012 9:44 AM