I am following a printing tutorial, but it's not working.
The tutorial is here: http://edndoc.esri.com/arcobjects/9.2/NET/ViewCodePages/025b5da7-9b10-4623-a51e-c038c348ce29.PrintActiveViewCS_NetPrintActiveViewCS_Net.cs.htm
Maybe printing in ArcEngine 10 is different. The initial problem is that the PageLayout is null.
//I tried this like in the sample
docPaper.Orientation = m_hookHelper.PageLayout.Page.Orientation;
//Then I tried passing in my own ActiveView obj and casting to PageLayout
IPageLayout pageLayout = docActiveView as IPageLayout;
But in both cases they are null.
Does anyone have a good link for printing in ArcEngine 10?