VeryDOC PDF Viewer OCX Control, which is a PDF viewer component, allows you to embed a standalone embeddable PDF Viewer into other windows applications for multiple applications.
Within the various programming languages’ environments, e.g., Visual C++, Delphi, C#, HTML (Internet Explorer), Visual Basic or any other programming languages or tools, you can be capable of building a customer interface for viewing PDF documents with supported functions on this OCX control. In one word, this PDF Viewer OCX control will be your best choice to design new utilities with this OCX control integration.
So, after short description about this OCX control, to try this component, please firstly download package of VeryDOC PDF Viewer OCX Control, and then, after extraction from package to computer, do the followings:
- Open command prompt window
- Type commands as the following:
regsvr32 D:\pdfviewerocx\pdfview.ocx
where:
D:\pdfviewerocx\pdfview.ocx is the path of “pdfview.ocx”
- Then, with one click on enter, registration is successful along with popping window containing successful indication
And after step above, here are examples about how to embed related functions component of PDF Viewer OCX Control in C# for you to refer to:
//Example to set open file mode
private void Open_Click(object sender, EventArgs e)
{
OpenFileDialog dlgOpen = new OpenFileDialog();
if (dlgOpen.ShowDialog() == DialogResult.OK)
{
axPdfview1.OpenPDF(dlgOpen.FileName, "", "");
}
}
//Example to set preview next page mode
private void NextPage_Click(object sender, EventArgs e)
{
axPdfview1.ViewNextPage();
}
//Example to show actual-size file
private void ActualSize_Click(object sender, EventArgs e)
{
axPdfview1.ZoomActualPage();
}
//Example to preview previous page mode
private void PreviousPage_Click(object sender, EventArgs e)
{
axPdfview1.ViewPreviousPage();
}
//Example to zoom preview for page fitting
private void FitPage_Click(object sender, EventArgs e)
{
axPdfview1.ZoomFitPage();
}
//Example to zoom preview for page width
private void FitWidth_Click(object sender, EventArgs e)
{
axPdfview1.ZoomFitWidth();
}
//Example to zoom in page preview
private void ZoomIn_Click(object sender, EventArgs e)
{
axPdfview1.ZoomIn();
}
//Example to zoom out page preview
private void ZoomOut_Click(object sender, EventArgs e)
{
axPdfview1.ZoomOut();
}
The above is about method to view file of PDF through based on how to embed PDF viewer component into your application via C#, if you have any questions, please leave your comments here. And if you want to use all functions about this tool, please purchase VeryDOC PDF Viewer OCX Control. 🙂
Hi,
the ocx is very good, but I have two questions in my application.
first question is axPdfview1.ZoomFitPage() can not set current page full view. my first page is 25cmX22cm, the second page is 8cmX26cm, It shows full of first page and part of second page when I set zoomfitpage(), but this pdf shows in adobe acrobat is ok at same way, why?
next question is how can I display note is a form?
Sincerely,
dh
[Reply]
VeryDOC Reply:
August 8th, 2013 at 5:52 pm
Can you please create a ticket on http://support.verypdf.com and submit your PDF file into the ticket? after we checked your sample PDF file, we will figure out a solution to you asap.
[Reply]
Thanks for your message, can you please create a ticket on http://support.verypdf.com and submit your PDF file into the ticket? after we checked your sample PDF file, we will figure out a solution to you asap.
[Reply]