GdViewer3 Reference

1. Introduction

The GdViewer ActiveX control provides an embeddable Image & PDF viewer for Windows application developers. Using Visual Basic, Visual FoxPro, MS Access, Delphi, VB.NET, C#, Visual C++, RealBasic (or another ActiveX-aware development tool), developers can build a custom interface including the capability to view Image and PDF files.


2. Installing & Redistributing the Control

You must copy the msvbvm60.dll and the gdviewer3.ocx into c:\%Windows%\System32\ . If your application runs under windows 98, NT4, ME or 2000 you must copy too the gdiplus.dll in this same directory.
You must register GdViewer on your system by running the command: regsvr32 c:\%Windows%\System32\gdviewer3.ocx
You can download the last gdviewer3.ocx edition here.

PDF viewing functions are contained in iSEDQuickPDF.dll. This DLL is only necessary if your application includes PDF View support. To use it you must copy it into c:\%Windows%\System32\
You can download the last iSEDQuickPDF.dll edition here.


3. Using the Control

Before using the control within a development environment, make sure the objsafe.tlb file is present into the windows/system32 directory.

This manual assumes that you are familiar with using controls in your development tool.

The GdViewer Control can be instantiated just like any other control. Before using the GdViewer ActiveX you need to add a reference to it within your development tool.


To add a reference to the GdViewer control in Visual Basic 5 or 6:

• Select the “Components...” command on the “Projects” menu, then check the box next to “GdViewer 3 - Image Viewer ActiveX".
Note: If you can't see the GdViewer 3 - Image Viewer ActiveX box you can add it by clicking into the "Brows.." button.

To add a reference to the GdViewer control in Visual Studio .NET:

• Right-click into the Toolbox Items and select "Add/Remove Items" for visual studio 2003 or "Choose Items" for visual studio 2005 and visual studio 2008.
• Choose the COM tab and check the GdViewer3.GdViewer classe.
Note: If you can't see the desired box you can add it by clicking into the "Brows.." button.

Important note:

This control is signed and marked as safe for scripting and safe for initializing.
If you encounter problems to load it within some development environment like Visual Basic 6, you probably need to copy the objsafe.tlb file into the system32 directory.





Click here to access to the last online documentation.
© Copyright 2007 GdPicture All rights reserved.