I am working on a proof of concept. (c# desktop application) I have successfully embedded an instance of DocViewer in a windows form. I need to limit page display to just one page at a time. Pages need need to scrolled programmatically.
I have come across this code which utilises the Document class but I find nothing similiar on the DocViewer class.
Alternatively I don't see how to embed the Document class in a form.
/*
Document doc = new Document();
doc.LoadFromFile(@"E:\Work\Documents\WordDocuments\.NET Framework.docx");
doc.ViewSetup.DocumentViewType = DocumentViewType.WebLayout;
doc.ViewSetup.ZoomPercent = 150;
doc.ViewSetup.ZoomType = ZoomType.None;
*/
While I have read that Docviewer has provision to manipulate the document view type, between these two classes, I just don't see the solution.
Could somebody please help? Thanks.