Disables the hotkeys in the MS Word programmatically

Edraw Viewer Component for Word provides some methods to disable the print, save and copy hotkeys.

boolean DisableSaveHotKey(boolean Disable);
Disables the Save keycodes.
Disalbe: Disables the CTRL+S, SHIFT+F12, Alt+SHIFT+F2, F12
boolean DisablePrintHotKey(boolean Disable);
Disables the Print keycodes.
Disalbe: Disables the CTRL+P, CTRL+SHIFT+F12, CTRL+F2, ALT+CTRL+I
boolean DisableCopyHotKey(boolean Disable);
Disables the Copy keycodes.
Disalbe: Disables the CTRL+C, CTRL+V, CTRL+X, SHIFT+DEL, SHIFT+INSERT, ALT+CTRL+V,
CTRL+SHIFT+C, CTRL+INSERT

You can call these methods at the DocumentOpened event.

SavetoServer and UploadAction.aspx

I’m testing the trial version of Edraw Component for Word v.7.4 befor upgrade from my version.
Everything it’s ok except SaveToServer : I’ve tried out both streaming and none, as in the sample code, but I’ve always the same message « Saved successfully ! » but it’s not so.
I’m developing an .asp application.
I can’t debug the UploadAction.aspx page because of the post method and I don’t know witch is the problem.
What does HttpPost method do?

My code in the SavetoServer method is :

[…]
document.getElementById(“OA1”).HttpInit
document.getElementById(“OA1”).HttpAddPostOpenedFile(myFile)
document.getElementById(“OA1”).HttpPost(myUploadPage)

Where myFile is initialized with the full logical path of the file on the server (es. \\Server_name\directory1\..\document.doc)
And myUploadPage is initialized with UploadAction.aspx location (es. http://…/UploadAction.aspx)

I’ve notice that when I open a file from the server the method IsReadOnly return allways true also if is not so.
I’ve tried also to give a new name to the file when I save to the server (replacing the original name with another in myFile variable), but no trace of the new file instead I receive the message « Save successfully ! ».

I’m developing also in C# for a .NET application that use framework 4 and here I’ve a different behaviour: I get error 17 corresponding to eSC_EndRequestFailed. What about this error ? when occur ?

Thanks for your attention

How To Import Edraw Office Viewer ActiveX Control in Delphi

Edraw Office Viewer Component can display and interact office document in the delphi program. Here is how to import Edraw Office Viewer ActiveX Control in Delphi.
1. Start Delphi and select Component | Import ActiveX Control… (recommend Delphi 2007/2009)

2. Look for the Edraw Office Viewer Component you wish to import (dialog displays the ActiveX controls registered on your system).

3. Select the Component palette location in which you want to place selected library.

4. Maybe the best is to leave the ActiveX option selected.

5. Click on Install.

6. Select a package where the new component must be installed or

7. Create a new package for the new TSomeActiveX control.

8. Click on OK.

9. Delphi will prompt you whether you want to rebuild the modified/new package or not.

10. Click on Yes.

11. After the package is compiled, Delphi will show you a message saying that the new Office Viewer Component was registered and already available as part of the VCL.

12. Close the package detail window, allowing Delphi to save the changes to it.

13. The component is now available in the ActiveX tab (if you didn’t change this setting in step 4)

14. Drop the component on a form, and simply: use it.

Tips:
1. In step 3, selecting the component palette for new Edraw Office Viewer Component allows you to group controls by function or vendor, for example.
2. The component wrapper is linked into the application executable file (or a runtime package), but the .OCX file for the component also needs to be deployed with the application.
3. ActiveX controls need to be registered on the deployment computer before use. Installation programs such as InstallShield Express automate this registration process.

Need Solution for Different Document Mode of IE browser to host office document

I have checked your demo site http://www.ocxt.com/officeviewer.htm, for displaying the office files (pdf,doc,xls,ppt,xlsx,docx) in the IE Browser for our web project Implementation.

It’s perfectly displaying all the file types of MS office in IE browser in Document Mode: Quirks only, but for other types of Document Mode (IE 7 Standards, IE 8 Standards, IE 9 Standards)

Your site is not working/displaying the MS office files in the IE browser.

Please give me yours feedback for this issue as soon as possible.

we need to open MS office files in all the types of IE Document mode (IE 7 Standards, IE 8 Standards, IE 9 Standards)

If your Control Help us then we can Buy license version for our Project.

Cannot save excel if cell is being edited

We have been using EDraw in our product for several months. During that time we have been quite happy, however there have been some complaining, that every now and then Excel stucks when content is saved.

The problem seems to be somehow related to the editing of Excel cell. If user is editing a cell and hasn’t accepted the value yet by pressing enter, the EDOffice methods cannot be called.

It may be demonstrated with following javascript code:

try

{

a = document.EDOffice.GetApplication();

alert(a.Name);

}

catch(err)

{

alert(“Error, cannot get the application type.”);

return;

}

If no cells are being edited, the messagebox shows “Microsoft Excel”. However, if a cell is being edited, the program either gives the error message in the catch statement, or gets totally stuck (must be killed with taskmanager).

Do you know any way to overcome this problem? The best way would be to somehow programmatically accept the cell value before saving. If that is not possible, it would be helpful if it was possible in some way to detect the erroneous situation before calling the EDOffice methods which cause the stuck.

Is there a way to open document directly from SharePoint URL?

I would like to embed the ms office viewer component to show word, excel and powerpoint files in our project. Is there a way to open ms office document directly from SharePoint URL? Save and Retrieve vice versa.

host word document in IE using Aspx page

We are using the Edraw Office Viewer Component. If we host word document in IE(Internet Explorer) using Aspx page(ASP.NET) what is the communication mode between document and code. Is there a way to receive events from the document.

broken macros in the documents

we have big problems with the alert when there are broken macros in the documents.

The alert window opens in the background and the user can’t see it.

Could you try to give the alert box the focus and bring it to front?

How could asp page knows user save or edit the document.

I am using edraw viewer component for MS Word in our project. How could asp page (ASP.NET) knows user save /edit the document.

Can this be done?

Please see the link http://cpccame.com/helpdesk/officeOCXHelp.png   there is a tree control where we attach a xls file, we need to open and then display the file when the file in the tree control is clicked. As you can see the control is working as the file is opened and displayed, but after that you can not use the file nor interact with excel, the only way  is to minimize the aplication the maximize but after a click or two the officeoxc just hangs.

You can see a little poject we created so you can see what the control is doing just click on the second branch of the tree

http://cpccame.com/helpdesk/ejemploEDraw.zip

If we can do it we will buy the officeocx rightaway

thanks in advance

 

Rafael Castañeda