Is there a way to programmatically call the functionality provided by the toolbar? For example I want all PDFs loaded to be fit to screen by default. How do I activate this?
Programmatically activate toolbar buttons
Re: Programmatically activate toolbar buttons
Support · Mar 24, 2011Hello,
Yes, you can make the PDF documents to open with Fit to Page, Fit to Width using our DynamicPDF Viewer product. You will have to set the ZoomLevel property of the Viewer control. Please make sure that you are setting this property before drawing the Viewer control. You can use BeforeDraw event of the DynamicPDF Viewer control to do this. Below is the sample code for setting ZoomLevel.
//Fit to Page
axDynamicPDFViewer1.ZoomLevel = 1;
//Fit to width
axDynamicPDFViewer1.ZoomLevel = 2;
Thanks,
ceTe Software Support Team.