Dear MJCredland,
Sorry that the demos didn't help you.
I guess there is misunderstanding. There are two primary controls when you add Spire Viewer dll. Let me take Doc viewer as example, one is DocViewer which already has options and you could not change options on it, the another is DocDocumentViewer which doesn't have any option and you could design it programmatically.
For the FitPage/FitWidth, please refer to below code.
- Code: Select all
//Doc Viewer, DocDocumentViewer control
this.docDocumentViewer1.ZoomMode = ZoomMode.FitWidth;
//PDF viewer, PdfDocumentViewer control
this.pdfDocumentViewer2.SetZoom(Spire.PdfViewer.Forms.ZoomMode.FitWidth);
//Office viewer, DocumentViewer control
this.documentViewer1.ZoomMode = Spire.OfficeViewer.Forms.ZoomMode.FitPage;
For the 'Open File' option, please don't use it when designing.
Hope these information could help you. If there is any question, please let me know.
Sincerely,
Betsy
E-iceblue support team