Help needed saving goDiagram image

Is there a way to use the goView class to generate a diagram image using the GetBitmapFromCollection method without having the go diagram visible inside a form?
Ciao
Massimo

Sure – just don’t add the GoView to a Form.

GoView tempview = new GoView(yourDocument);
Bitmap docbmp = tempview.GetBitmapFromCollection(tempview.Document);
Stream docoutf = File.OpenWrite(@"C:\temp\doconly.png");
docbmp.Save(docoutf, ImageFormat.Png);
docoutf.Close();