Edraw Office Viewer Component V8.0.0.812 Released

 

Office Viewer Component

Edraw Office Viewer Component Acts as an ActiveX document container for embeding Office documents (including Microsoft Word, Microsoft Excel, Microsoft PowerPoint) in a custom form or Web page. The control is lightweight and flexible, and gives developers new possibilities for using Office in a custom solution.

Download link: http://www.ocxt.com/download/OfficeOCXSetup.exe

Online Demo: http://www.ocxt.com/online-demo

Free download Office Viewer ComponentPurchase Office Viewer Component in a promotional price

You can find the sample projects and help document in the install folder. Learn More

Edraw Viewer Component for Excel V8.0.0.812 Released

Excel Viewer Component

Edraw Viewer Component for Excel is the enhanced solution of office viewer and focus in the Microsoft Excel. The excel control is designed to handle specific issues that make using ActiveX documents from a non-top-level host window difficult, and serves as a starting place for constructing your own embedded excel object file viewer or editor as an ActiveX control.

Download link: http://www.edrawsoft.com/download/EDExcelSetup.exe

Online Demo: http://www.ocxt.com/online-demo

Edraw Viewer Component for Word V8.0.0.733 Released

word viewer

Edraw Viewer Component for Word is the enhanced solution of office viewer and focus in the Microsoft Word. The word control is designed to handle specific issues that make using ActiveX documents from a non-top-level host window difficult, and serves as a starting place for constructing your own embedded word object file viewer or editor as an ActiveX control.

It is a great solution for companies wishing to display read-only Word document data to their employees while restricting modifications to the underlying data. You can also display password protected Word documents without supplying passwords to your users – keep your confidential data safe and secure! With the Word component it is easy to upload or download file between server and client via HTTP/FTP.

It can be easily integrated to the modern integrated development environments like Visual C++, Visual Basic, C# or VB.NET, Acess, ASP.NET, Visual FoxPro, Delphi, PowerBuilder, and more.

Download link: http://www.edrawsoft.com/download/EDWordSetup.exe

Online Demo: http://www.ocxt.com/online-demo

Free download Office Viewer ComponentPurchase Office Viewer Component in a promotional price

The new component has also solved some known bugs in the previous version.

What’s New:

1. Supports to open multiple Word Instances in the different form or the IE tab.

2. Solved the toolbar disable issue when open a word instance outside of the component.

3. Solved the word menu flicker in the IE 7 and IE8.

4. Enabled more Word functions and buttons.

5. Added the method to disable the view right click menu.

6. Allows to disable the save, print and copy hot key (includes the F12 hot key).

7. Invoked the Word event in the component.

8. Supports to open the docx file in Word 2003 with 2007 compatibility package installed.

9. Supports to open the password and write password protected word document.

10. Added the protect type to allow only revisions or full protection.

11. Added the bookmark and revision operations.

12. Added the method to disable drag and drop function in the MS Word.

Edraw PDF Viewer Component V5 Released

PDF Viewer Component

PDF Viewer Component is a light weight ActiveX Control which enables your application to display and interact with PDF files. It is identical to Adobe Reader program and adds high speed viewing of PDF documents to your applications easily. Read-Only Support for PDF Viewer! It is a great solution for companies wishing to display read only PDF document to their employees while restricting save or save to the underlying data. The control is lightweight and flexible, and gives developers new possibilities for using PDF Reader in a custom solution.

Free download PDF Viewer ComponentPurchase PDF Viewer Component in a promotional price

Online Demo: PDF Viewer Component Online Demo
Download Printable Develop Manual

PDF Viewer Component Features

  1. Seamlessly use the Adobe Reader as the container to render the PDF files. 100% PDF format compatible.
  2. HTTP/HTTPS Support. With the component it is easy to upload or download file between distant server and client via HTTP/FTP.
  3. Show/Hide the Save Copy As button which is available in adobe tool bar.
  4. Show/Hide the PDF Print button in adobe tool bar.
  5. Show/Hide the scrollbar in PDF viewer.
  6. Disable the right-click menu in adobe reader window.
  7. Disable all the hot keys such as Save As, Print, Show/Hide Tool Bar and more.
  8. The document control represents the PDF document and lets you open, close, save, print and
    navigate the PDF document programmatically. Support all the interfaces of Adobe PDF Reader such as zoom, search and navigate.
  9. A standard ActiveX control which can be called from different programming languages, including C/C++, C#, Delphi, Visual Basic, ASP.NET etc.
  10. Requires any edition of Adobe PDF Reader is included as part of the comprehensive PDF Viewer Component.

Host multiple Excel and Word components in a form

You can host multiple office component in a form or you can open multiple office instance in your internet explore with Edraw Viewer Component version 7.

The new version 7 has no toolbar-locked issues with multiple instances of Word or excel opened in several tabs or even inside single form.

Note: you need set the Frame hook policy as SetOnFirstOpen and Component activation policy as KeepUIActiveOnAppDeactive in the previous version. But it doesn’t work for the IE7 or IE8.

Frame hook policy
To correctly handle activation when the host gains or loses foreground status, the ActiveX control uses a frame hook. By default, the hook is set when the control is created. In some situations, especially when the control is used from a multi-threaded UI host or when the control is nested in a container control like a Tab page in a .NET WinForm application, the parent of the control at create time may not be the correct window for the control to hook when it is running. In these situations, you can use the FrameHookPolicy property to reset the hook at a more suitable time. For example, if you build a .NET WinForm solution, set the FrameHookPolicy property to SetOnFirstOpen in the Properties window.

Component activation policy
The sample control can support more than one instance of itself in a given host application. However, only one control can be active at a given time. This is a requirement of ActiveX Document hosting. To handle multiple instances in a single host, the control registers itself with a component manager. This lets the component manager keep track of the active control. Use the ActivationPolicy property to control how the embedded object is handled during component changes. The ActivationPolicy property can be set to one or more of the bit flags that are defined by the ActivationPolicy enumeration.

What’s New in Edraw office Viewer Component V6

  1. Fixed the bug which Word cannot create the work file: check environment temp variables when Vista UAC enabled.
  2. Fixed the bug which MS Word will shut down IE in protection mode. It’s better for web application to add work site in IE trust site list.
  3. SiteLock enables ActiveX control developers to restrict the use of an ActiveX control to a predetermined list of domain names or security zones.
  4. Developing Safer ActiveX Controls to allow special file type to upload or download.
  5. Fixed the bug which failed to create MS Word document consecutively.
  6. Added the Error code return for the http download/upload status.
  7. Fixed the bug which the component closes the Excel document (but leaves Excel running) if I have Excel open in another window.
  8. Fixed the bug which The Excel process in background is still running and not terminated actually.
  9. Now the component can work in IE 6, IE 7 and IE 8 Protection Mode Off.
  10. Fixed the toolbar region refresh bug when resize PowerPoint object when toolbar is hide.
  11. Fixed the error message “Attempt to access invalid address”.
  12. Read-Only. Protect the end user to modify the MS Word document by Calling the OfficeProtectDocument method in the OnDocumentOpened event.
  13. The OfficeProtectDocument method can also protect multiple Excel sheets. It will protect the Excel Charts too. Supports xlNoSelection, xlNoRestrictions and xlUnlockedCells.
  14. Added some methods to support http upload/download.
  15. Provided some methods to disable the hot keys. Prevent the end users to print document, copy and paste.
  16. To avoid the unknown file type in the Windows temporary folder, the component enhanced the WebUrl parse. In the HttpOpenFileFromStream, HttpOpenFileFromServerDir and Open methods, the WebUrl parameter must include the file extend name so that the component know the file type. For example: http://www.ocxt.com/Getfile.aspx?ID=1002&FileName=guid.docx, or http://www.ocxt.com/samples/sample.xls.
  17. Added the OnBeforeDownload, OnDownloadComplete and OnUploadComplete events.
  18. You can set the protect type by setting the first character of “Password” parameter. AllowOnlyRevisions = 0: User can only add revision marks to the document. AllowOnlyComments = 1: User can only modify comments in the document. AllowOnlyFormFields = 2: User can only enter data in the form fields in the document. ReadOnly = 3: No changes are allowed to the document. Available since Microsoft Word 2003.
  19. Cancelled the count limitation to open the office document at the same time.
  20. The component is safe for initialization and safe for scripting.
  21. The activex control was signed with the digital certification.
  22. Fixed the bug which  delete the user file.
  23. Fixed the bug which MS Word crashes when closing Print Preview mode.
  24. Use the NotifyCtrlReady event to avoid IE crash when loading an office document automatically.

Edraw Office Viewer Component 5.3.407 Released

5.3.407.1 version is a maintenance update.

1. Provided the silent print for the MS office document.

2. Added WordGetCurrentPageIndex and WordGetTotalPageCounts to return the current page number and page counts in Word document. 

3. The ExcelGetCellValue won’t returns null when the date is numeric;

4. Supported to open an Office 2007 file from the remote server with the “Open” method directly.

5.3.288.1

1. Fixed the buffer overflow to execute arbitrary code via a long first argument to the HttpDownloadFileToTempDir method and FTPDownloadFile.

2. Solved the failture when saving an Excel document to the server and having a cell activated.

3. Removed the default overwrite reminder from Microsoft Excel if you save an open Excel file at the same position multiple times.

4. Solved: Return to the first page if you click the Document Map in a protected Microsoft Word document

5. Solved: The excel process keeps back when call the “OfficeProtectDocument” method.

6. Some other small improvements.

DsoFramer Problem and Solution

The DSOFramer VC++ Control is released provided by Microsoft to demonstrate how to host Office documents in VB or HTML. As a COM component, it can also be invoked inside .net applications. Unfortunately MS does NOT guarantee any support as it is provided as an example only. The component has lot’s strange problems and is difficult for users to solve. The component is aslo not script safe for initialization and safe for scripting. Some typical bugs in it are impossible. You can find multiple excel processes keep in the task manager when you exit your program. You can find the component popup some memory error when it works in IE8. It also impossible to load a Word document when the web page load automatically. The component will failed to create New document twice consecutively. The component won’t work in the Vista UAC enable environment.

All these will spend lot’s of time to overtime. Why not use the Edraw Office Viewer Component? You can think it’s a enhenced dsoframer and easily get better product support than others. It has some new features to help get the read only property and the http stream support. It is safer because it is code sign and site lock support. The savetoserver method used the http post method and won’t be blocked by the firewall. You can download the trial version from http://www.ocxt.com/download/OfficeOCXSetup.exe

Or View the online demo at http://www.ocxt.com/online-demo

Edraw Office Viewer Component V7 help you host MS Office and there are not these above headachy problems. It is more steady than the dsoframer and has more automation functions.

What’s New in Edraw Office Viewer Component

1. Faster new and open speed.
2. Supports office 2010.
3. New version invokes the Office Ribbon menu. The developer can enable it or disable it by requirement.
4. Supports to open multiple Word, Excel, PowerPoint Instances in the different form or the IE tab.
5. Solves the toolbar disable issue when open a word instance outside of the component.
6. Solves the word menu flicker in the IE 7 and IE8.
7. Added the method to disable the view right click menu.
8. Allows to disable the save, print and copy hot key in the MS Word document (includes the F12 hot key).
9. Invokes the Word event and Excel event in the component.
10. Supports to open the office 2007 files in Office 2003 with 2007 compatibility package installed.
11. Supports to open the password and write password protected word document.
12. Addes the protect type to allow only revisions or full protection.
13. Fixes the bug which Word cannot create the work file: check environment temp variables when Vista UAC enabled.

Javascript for Office Viewer Component

We have written a demo page with javascript. Anybody can visit it at

http://www.ocxt.com/oademo_javascript.php

You can find all the sample projects in the install directory.

What’s New in Version 5.2

1. Solves the crash if you apply the “SaveToServer”  methods in Internet explore.

Now you can call the follow scripts to finish the SaveToServer.

Sub SavetoServer()
    If OA1.IsOpened = True Then
     document.body.style.cursor = “wait”
     OA1.HttpInit
     Dim strFileName
     strFileName = OA1.DocumentName
     If strFileName = “” Then
        strFileName = “yourguid”
        strFileName = strFileName + OA1.GetOpenedFileExt()
     End If
      OA1.HttpAddPostOpenedFile strFileName
      OA1.HttpPost “http://www.ocxt.com/demo/upload_weboffice.php
      document.body.style.cursor = “default”
      Dim sPath
      On Error Resume Next
      sPath = “Save successfully! You can download it at http://www.ocxt.com/demo/” + strFileName
    MsgBox sPath
 Else
  MsgBox “Please open a document firstly!”
 End If
End Sub

2. Adds some new methods.

Function:  HRESULT GetTempFilePath([out,retval] BSTR* strValue);
Description: Gets a temporary file path.

Function:  HRESULT ClearTempFiles();
Description: Clears these temporary files created by the component. The function won’t delete any other files out of OA temporary directory.

Function:  HRESULT GetOpenedFileExt([out,retval] BSTR* strValue);
Description: Gets the file extend of the current opened file.

Function:  HRESULT GetOpenedFileType([out,retval] OpenedFileType* nType);
Description: Gets the file type of the current opened file.

3. Changes the Insecure Method “void HttpDownloadFile(WebUrl, LocalFile, WebUsername, WebPassword)” to “BSTR HttpDownloadFileToTempDir(WebUrl, WebUsername, VARIANT WebPassword);

Now the component can only download the file to “Internet temporary file directory\OA\”. So anybody can’t use the method to download a file then conver a good system file.