D
DanaLe
This should be an easy one, I think, I must be missing something really
obvious...
I've got the Visio Control embedded in my window application, and when the
user resizes the window, the control resizes as well. The thing is, I'd like
the page's behavior to be for the page to resize to fit the window. That is,
I'd like the page to zoom to fit the window.
code looks something like this:
// make the control the same size
axDrawingControl1.Width = this.Width - 10;
axDrawingControl1.Height = this.Height - 10;
// none of the below works
//axDrawingControl1.Document.ZoomBehavior =
Microsoft.Office.Interop.Visio.VisZoomBehavior.visZoomInPlaceContainer;
//axDrawingControl1.Document.ZoomBehavior =
Microsoft.Office.Interop.Visio.VisZoomBehavior.visZoomVisio;
//axDrawingControl1.Document.ZoomBehavior =
Microsoft.Office.Interop.Visio.VisZoomBehavior.visZoomVisioExact;
//axDrawingControl1.Document.Pages[1].ResizeToFitContents();
Thanks for any help and/or suggestions. I appreciate it!
obvious...
I've got the Visio Control embedded in my window application, and when the
user resizes the window, the control resizes as well. The thing is, I'd like
the page's behavior to be for the page to resize to fit the window. That is,
I'd like the page to zoom to fit the window.
code looks something like this:
// make the control the same size
axDrawingControl1.Width = this.Width - 10;
axDrawingControl1.Height = this.Height - 10;
// none of the below works
//axDrawingControl1.Document.ZoomBehavior =
Microsoft.Office.Interop.Visio.VisZoomBehavior.visZoomInPlaceContainer;
//axDrawingControl1.Document.ZoomBehavior =
Microsoft.Office.Interop.Visio.VisZoomBehavior.visZoomVisio;
//axDrawingControl1.Document.ZoomBehavior =
Microsoft.Office.Interop.Visio.VisZoomBehavior.visZoomVisioExact;
//axDrawingControl1.Document.Pages[1].ResizeToFitContents();
Thanks for any help and/or suggestions. I appreciate it!