Only play a range of slides from within a given

I am use your ActiveX control for a client and am so far very
happy with what I’ve found, with one minor exception. Your control
implements the method

SlideShowOpenAndPlay(Document, bFullScreen, bShowWebToolbar,
bLoopUntilStopped, bShowScrollBar, WebUsername, WebPassword)
and I am wondering if there is a way of specifying a start and end slide
for a show – that is, to only play a range of slides from within a given
presentation? Something like the commandline /R=n-m switch that the
older PowerPoint Viewer application implemented.
Also, how complicated would it be to fire an event when navigating from
the last slide?
Any feedback would be much appreciated.

Open an Excel file and the excel windows seems locked

Hello, I noticed this problem, also in the VB6 sample of the latest version of your OfficeViewer component:

Open an Excel file

Now from my documents (external of the sample program) I try to open another Excel document, with classic double-click; an Excel window show up, but it’s empty and seems “locked” by the OfficeViewer component. I can’t access or close this window until I close the preview.  

There are something that I can do?

Then I tried to open another Excel file externally, from my PC (directly with double click), but attached is the result; the excel windows seems locked, can’t move / close / access.

how do you selectively turn on and off MS Office toolbars and menus

If you would like to be able to turn off and on particular toolbars, follow the codes.

officeviewer1.ActiveDocument.commandbars (“Formatting”).visible = False

How do I insert a page break in the function of Word Automation

How do I insert a page break in the function of Word Automation. The instructions that I have tried do not
work:
     Set objWord = OA1.ActiveDocument
     Set objApp = OA1.Application
     objApp.Selection.InsertBreak Type:=wdPageBreak
Can you help?

Solution:

Use the number to replace the emun.
 
Set objApp = OA1.Application
objApp.Selection.InsertBreak 7

Can an ActiveX control be installed in IE without having administrator privileges?

No. Only accounts with the administrative privelege to install OCXs or DLLs can install Active-X controls (by default those accounts are part of the Administrators, Domain Administrators or Power Users groups). But the IE will allow to install the CAB file in the default safe setting.

Embed Office

Do you want to embed a desktop application with Microsoft Office integration such as Word, Excel and Powerpoint, PDF etc? Do you want to display Word, Excel and Powerpoint document in your web application? Do you want to host office documents in your Winforms program? All these things now can be easily achieved by using Edraw Office Viewer Component.

The component supports seamless integration with Office 97, 2000, XP, 2003 and 2007.

Edraw Office Viewer Component support embeding Office documents in your application by implementing a full featured ActiveX document container. Now you can create, open, edit, view and save office documents such as *.doc, *.docx, *.xls, *.xlsx, *.ppt, *.pptx etc in your own program’s window. With Office component you can have Office run embedded inside your custom solution.

Office Viewer Component Features

1. Read-Only embedding Word document and Excel Sheet! It is a great solution for companies wishing to display read-only Word document data and Excel sheet to their employees while restricting modifications to the underlying data.
2. Support seamless integration with Office 97, 2000, XP, 2003 and 2007.
3. Play SlideShow at the same window. You can embed PowerPoint in the same window or full screen mode.
4. You can also embed password protected Word documents without supplying passwords to your users – keep your confidential data safe and secure!
5. HTTP/HTTPS Support. With the office OCX it is easy to upload or download file between server and client via HTTP/FTP.
6. Support More file types. You can open all the file formats supported by Microsoft Word such as doc, docx, dot, rtf, txt, mht, xml, wps, wri, wpd, wps, wpi, olk, pab. You can also open the follow file in the Microsoft Excel sheet such as xls, xlsx, xlt, xlw, cvs.
7. Multiple Language Support. Easy to modify the interface in run time/design time.
8. Support Office Automation by exposing the active document interface. Enable the developer to customize the office application by the dispatch interface.
9. Easy to use with a lot of examples provided.

It is a standard ActiveX control that can be used as an ActiveX document container. It can be easily integrated into applications written in languages that support ActiveX control such as Visual C++, Visual Basic, Delphi, C++ Builder, .Net languages (VB.Net, J#, C#), eDeveloper, and web pages with Internet explorer.

Edraw Office Viewer Component for Hosting Office Documents

Edraw Office Viewer Component contains a standard ActiveX control that acts as an ActiveX document container for hosting Office documents (including Microsoft Word, Microsoft Excel, Microsoft PowerPoint, Microsoft Project, and Microsoft Visio documents) 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.

The 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 object file viewer or editor as an ActiveX control.

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

MORE INFORMATION
This component shows allows developers to embed Office files for in-place editing and viewing. It can be easily integrated into applications written in languages that support ActiveX control such as Visual C++, Microsoft Internet Explorer, Visual Basic, Delphi, C++ Builder and .Net languages to view Office files inside their main solution, and give them programmatic control over the document while it is embedded. 

Solve IE Crash when Onloads Office Document

As you know, if you are using the dsoframer ocx to load a word document, somtime the web page will crash. Aim at the bug, we add an event to solve the issue.

Reasons: When IE parses the pages, it will construct its pages list of Object target automatically. At this same time object will automatically initialize its own. But they are synchronized, non-fixed timing. If IE called “Open” Interface of the ocx, but the ocx did not prepare its own window, it will lead to the anomaly.

Solution: Independent IE, after the ocx completes the initialization, derived an incident “NotifyCtrlReady”. In “NotifyCtrlReady” incident called Open Interface, can guarantee OCX window well prepared, there will be no anomaly.

Please referent the event interface:

[id(OA_DISPID_NOTIFYCTRLREADY), helpstring(“Ready to open document.”)]
HRESULT NotifyCtrlReady();

Upload a file to a Web server in ASP.NET

EDraw WebOffice Component provides some methods to upload the file to a web server.

HTTP Post

[id(36), helpstring(“Initializes the HTTP connection.”)]
   boolean HttpInit();

[id(37), helpstring(“Adds the post parameter.”)]
   boolean HttpAddpostString([in] BSTR Name, [in] BSTR Value);

[id(38), helpstring(“Adds the post file.”)]
   boolean HttpAddPostFile([in] BSTR LocalFilePath, [in] BSTR NewFileName);

[id(39), helpstring(“Executes the post action.”)]
   boolean HttpPost([in] BSTR WebUrl,[in, optional] VARIANT WebUsername, [in, optional] VARIANT WebPassword);

You can use the follow steps to save the opened office document to a web server.

Sub SavetoServer()
    ‘ASP.NET’
    OA1.HttpInit
    OA1.HttpAddpostString “author”, “anyname”
    OA1.HttpAddpostString “Data”, “2007-5-15”
    OA1.HttpAddPostFile “”, “newfilename.doc”
    OA1.HttpPost “http://localhost:1320/Samples/UploadAction.aspx”    
       
    ‘Or you can call the Save method to upload the openned file to the server directly.For examples:
    ‘OA1.Save “http://localhost:1320/Samples/UploadAction.aspx?FileName=newname
End Sub

Note: If the first parameter of “HttpAddPostFile” is blank, the method will upload the opened office file to server.

Then you need to write a ASP.NET Get page to receipt the file.

Review the follow examples:

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Xml;
using System.Drawing.Imaging;
using System.Text.RegularExpressions;

public partial class UploadAction : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.Params[“author”] == “anyname” && Request.Params[“Data”] == “2007-5-15”)
        {
            Response.Write(“0\n”);
            Response.Write(“We have receipted the right param from Office ActiveX Control.”);
        }
        if (Request.Files.Count == 0)
        {
            Response.Write(“0\n”);
            Response.Write(“There isn’t file to upload.”);
            Response.End();
        }
        if (Request.Files[0].ContentLength == 0)
        {
            Response.Write(“0\n”);
            Response.Write(“Failed to receipt the data.\n\n”);
            Response.End();
        }
        string fullFileName = Server.MapPath(Request.Files[0].FileName);
        Request.Files[0].SaveAs(fullFileName);
        Response.Write(“Upload Successfully.”);
        Response.End();
    }
}

Reference of EDraw Office Viewer Component

EDraw Office Viewer Component V4.0
Overview
EDraw Office Viewer Component contains a standard ActiveX control that acts as an ActiveX document container for hosting Office documents (including Microsoft Word, Microsoft Excel, Microsoft PowerPoint, Microsoft Project, and Microsoft Visio documents) 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.
The 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 object file viewer or editor as an ActiveX control.
It is a great solution for companies wishing to display read-only Word document data and Excel sheet to their employees while restricting modifications to the underlying data. You can play the PowerPoint file in the same window. You can also display password protected Word documents without supplying passwords to your users – keep your confidential data safe and secure! With the office component it is easy to upload or download file between server and client via HTTP/FTP.
Product Home: http://www.ocxt.com
Company Home: http://www.edrawsoft.com
Online Demo: http://www.ocxt.com/online-demo/
Support Mail: support@ocxt.com
Sales online: https://www.regnow.com/softsell/nph-softsell.cgi?item=14621-2
Requirement
The Server: Windows or Unix Server.
The Client: Office 97, Office 2000, Office XP, Office 2003 or Office 2007
It can be easily integrated into applications written in languages that support ActiveX control such as Visual C++, Visual Basic, Delphi, C++ Builder and .Net languages. Support Office automating client to custom your application. Include abundant sample codes in the install directory. You can also get the full c++ source codes.
OCX Information
Name: EDraw Office Viewer Component
File Name: edrawofficeviewer.ocx
CLSID: 053AFEBA-D968-435f-B557-19FF76372B1B
Version: 4,5,0,20
Release Date: 2007-5-20
OCX Size: 916KB
CAB Size: 350KB

Download the referent at http://www.ocxt.com/download/reference.doc