Nevron Forum

Changing the size of a page

https://www.nevron.com/Forum/Topic14477.aspx

By Richard Dubé - Wednesday, July 12, 2023

Hi,

I tried to have a custon size for a page but cant do it. I followed the code in the helpopenvision section but I got the this error :
'NDrawingView' does not contain a definition for 'Drawing' and no accessible extension method 'Drawing' accepting a first argument of type 'NDrawingView' could be found (are you missing a using directive or an assembly reference?) 

with the following line:
NDrawing drawing = drawingView.Drawing;
By Nevron Support - Tuesday, May 7, 2024

Hi Richard,

The Drawing property of the NDrawingView has been changed to Content, so to get the drawing of a drawing view use the following line of code:
NDrawing drawing = drawingView.Content;


Regarding changing of the page size, please take a look at the following documentation topic:
NOV Diagram Pages