Hi,
You can esily size the document and zoom it so that all of its content is visible. All you need are 2 lines of code:
document.SizeToContent();
view.ViewLayout = ViewLayout.Fit;
Thanks. But it doesn't solve my problem. I want the white area (the view I guess) to cover the entire hosting control. I tried all the options from ViewLayout but cannot figure it out. Anyhelp?
In that case we recommend you set the ScrollBars property of the view to none, subscribe to the Resize event of the view and resize the document to the size of the view in there.
Thanks, can you give me a sample code on how to size the document to the size of the view? The document has no Size property. Thanks in advance.
Never mind, I found it. Thanks a bunch as always:
nDrawingView1.Document.SizeToContent(