Edraw Office Viewer Component V8.0.0.503 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 Word V8.0.0.503 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 Viewer Component for Excel V8.0.0.503 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 PDF Viewer Component V3.2.0.365 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.

View RTF formatted string in the office viewer component

Tthis office viewer component could retrieve and save the physical files form the server when we provide the respective file paths.  This component also support to load/save the content of the documents through RTF formatted strings. These strings will be saved and retrieved as it is from the database. The developers can write javascript functions within JSPs to provide access to javascript variables to take these RTF formatted string values.

Firstly, the component can open a rtf file from server with the stream mode.

Referent the following page to write a asp.net page in your server to read file to stream.

http://www.edrawsoft.com/httpopenfilefromstream.php

Then use the following javascript to load the file into component.

<script language=”vbscript”>
Sub DownloadFile()
EDOffice.HttpInit();
EDOffice.HttpAddpostString(“DocumentID”, “name.rtf”);
EDOffice.HttpOpenFileFromStream(“http://localhost:2440/ASPCSharp/UploadAction.aspx”, “Word.Application”);
End Sub
</script>

To save rtf file back to server, you need call the following method.

http://www.edrawsoft.com/httpupload-office-files.php

<script language=”vbscript”>
Sub UploadFile()
EDOffice.HttpInit
EDOffice.HttpAddpostString “author”, “anyname”
EDOffice.HttpAddpostString “Data”, “2010-5-15″
EDOffice.HttpAddPostOpenedFile filename.rtf,  6                 ;wdFormatRTF = 6,
EDOffice.HttpPost “http://localhost:1320/Samples/UploadAction.aspx”
End Sub
< /script>

Hide the office 2013 ribbon file menu

The new version 8.0.0.430 can hide the file menu items for the ms office 2013 with the following settings.

function OA1_BeforeDocumentOpened()
{
document.OA1.DisableFileCommand(1, true);//wdUIDisalbeOfficeButton
document.OA1.DisableFileCommand(2, true);//wdUIDisalbeNew
document.OA1.DisableFileCommand(4, true);//wdUIDisalbeOpen
}

More options:

wdUIDisableOfficeButton   =    0×00000001,
wdUIDisableNew   =    0×00000002,
wdUIDisableOpen    =    0×00000004,
wdUIDisableUpgradeDocument     =    0×00000008,
wdUIDisableSave   =    0×00000010,
wdUIDisableSaveAs  =    0×00000020,
wdUIDisableSendAsAttachment   =    0×00000040,
wdUIDisableClose   =    0×00000100,
wdUIDisablePrint   =    0×00000200,
wdUIDisablePrintQuick   =    0×00000400,
wdUIDisablePrintPreview   =    0×00000800,
wdUIDisableSaveAsMenu   =    0×00001000,
wdUIDisablePrepareMenu   =    0×00002000,
wdUIDisablePermissionRestrictMenu   =    0×00004000,
wdUIDisableSendMenu    =    0×00008000,
wdUIDisablePublishMenu    =    0×00010000,
wdUIDisableServerTasksMenu   =    0×00020000,
wdUIDisableCopyButton   =    0×00040000,
wdUIDisableCutButton   =    0×00080000,

Work in a WPF application with Office Viewer Component

You need add a UserControl.

Then inser the Com Component in it.

There is a Edraw Office Viewer Component WPF sample project. You can referent it at the following install folder.

http://www.edrawsoft.com/embed-office-wpf.php

How do i use InsertBreak and ReplaceText in Office Viewer Component

The ReplaceText method can not do it.

You maybe use the ms word automation to realize it.

The component can get the msword::_Application interface. Then you can do the automation.

For examples in VC:

word::_Application wd;
wd.AttachDispatch(app, FALSE);
if(wd == 0){
wd.DetachDispatch();
return FALSE;
}
BOOL bFindHeader = FALSE;
BOOL bFindBody = FALSE;
BOOL bFindFooter = FALSE;
word::Window win = wd.GetActiveWindow();
word::Pane pane =  win.GetActivePane();
word::View vw = pane.GetView();
{
vw.SetSeekView(9);//wdSeekCurrentPageHeader =9
word::Selection sel = wd.GetSelection();
CHECK_NULL_RETURN(sel, FALSE);
word::Find fd = sel.GetFind();
CHECK_NULL_RETURN(fd, FALSE);
VARIANT vText;
vText.vt = VT_BSTR; vText.bstrVal = strText.AllocSysString();
VARIANT vMatchCase;
vMatchCase.vt = VT_BOOL; vMatchCase.boolVal = MatchCase?VARIANT_TRUE:VARIANT_FALSE;
VARIANT vMatchWholeWord;
vMatchWholeWord.vt = VT_BOOL; vMatchWholeWord.boolVal = MatchWholeWord?VARIANT_TRUE:VARIANT_FALSE;
VARIANT vFalse;
vFalse.vt = VT_BOOL; vFalse.boolVal = VARIANT_FALSE;
VARIANT vTrue;
vTrue.vt = VT_BOOL; vTrue.boolVal = VARIANT_TRUE;
VARIANT vWrap;
vWrap.vt = VT_I4; vWrap.lVal = long(1);
VARIANT vRelpaceAll;
vRelpaceAll.vt = VT_I4; vRelpaceAll.lVal = long(2);
VARIANT vReplaceText;
vReplaceText.vt = VT_BSTR; vReplaceText.bstrVal = strReplaceText.AllocSysString();
bFindHeader = fd.Execute(&vText, &vMatchCase, &vMatchWholeWord, &vFalse, &vFalse, &vFalse, &vTrue,
&vWrap, &vFalse, &vReplaceText, &vRelpaceAll);
fd.ReleaseDispatch();
sel.ReleaseDispatch();

How to disable the buttons in the QAT

There are not methods to disable the icons at the quick ribbon bar.

You maybe hide the whole ribbon title bar with the following setting.

AxEDOffice1.ShowRibbonTitlebar (false)

Or you need use the macro to hide the quick ribbon bar in the ms office 2013.

WordInsertPicture Method for a Server Path

We are trying to in insert an image in the word document programatically  and we are using WordInsertPicture
method.We are getting an error message which says the  \’\'The graphics filter was unable to convert this file \” .We
are getting this error specifically in the server instance and not in the local instance.Please suggest the proper
method if any.

Answer:

The WordInsertPicutre method supports local path. You need download the image to your local client. Then use the method.