We have a requirement to create a diagram template programmatically - a simple diagram that will be opened later by the user. There is no UI involved.
I have used some of the code from your online demos, but I'm at a point where I need to save the diagram. Ideally I'd like to get a string that I can save to our database, much like I'm currently doing on the client. Is there a diagram.save equivalent in code behind?