Hi,
I am printing an ER Diagram. The diagram prints but the columns inside each node which include a list of checkbox bitmaps and column namse does not print. See following code. What do I need to do to also print all node objects. EntityView is a MyGoView class which inherits from GoView.
Thanks
Rich
public void PrintERDiagram()
{
SizeF docsize = this.<b>EntitiesView</b>.PrintDocumentSize;
if (docsize.Width > 1 || docsize.Height > 1)
{
PrintDocument pd = new PrintDocument();
Rectangle b = pd.DefaultPageSettings.Bounds;
Margins m = pd.DefaultPageSettings.Margins;
float w = b.Width - (m.Left + m.Right);
float h = b.Height - (m.Top + m.Bottom);
float ratio = Math.Min(w / docsize.Width, h / docsize.Height);
if (ratio > 1)
ratio = 1;
this.EntitiesView.PrintScale = ratio;
}
this.EntitiesView.PrintPreview();
}