put header or footer in word viewer component

How to put data into the header or into footer in a word or excel document?

Can we build the windows component in 64 bit

hi,

I have read documentation of Edraw OCX, and I have a question related to print function. Following is help material taken from documentation:

 

Function: HRESULT PrintOut([in, optional] VARIANT PromptUser, [in, optional] VARIANT PrinterName, [in, optional] VARIANT Copies, [in, optional] VARIANT FromPage, [in, optional] VARIANT ToPage, [in, optional] VARIANT OutputFile);Description: Prints current document to specific printer with settings.Parameters:

PromptUser: Indicates whether the user is prompted for the value of the parameter. PrinterName: Indicates the name of printer. Gets an empty string if the default printer is used. 

PrinterName: Indicates the name of printer. Gets an empty string if the default printer is used. Copies: Sets the number of copies of the document to print.

FromPage: Sets the page number of the first page to print.

ToPage: Sets the number of the last page to print.

OutputFile: Sets the name of an optional file to which trace replay output is streamed.

Return Value:

Nonzero if successful; otherwise 0.

Kindly inform me about PromptUser parameter. What is use of this parameter? I have seen VC++ sample Demo. This is an optional parameter. This variable/parameter is not set to any value in this sample. Any related information?

Thanks,

Faizan

Why do I fail to download the ActiveX control on the client

The failure of loading Office Viewer ActiveX control has the following possible causes:
1. The security settings of IE on the client machine are incorrect.
Please verify the following security settings of IE to “Prompt” or “Enabled”:
a) Download signed ActiveX controls
b) Run ActiveX Controls and plug-ins
c) Script ActiveX controls marked safe for scripting
The dialog box of the security setting can be launched from menu
Tools>Internet Options. Then select the security tab.

disable some toolbar buttons when a document is opened inside the app

I am using Edraw Word Viewer in my Windows Form application developed using C#.

I need to disable some toolbar buttons when a document is opened inside the app. When user launches MS Word application outside, then the buttons are disabled there too. How can I isolate the toolbar/menubar changes just within the activedocument inside the ActiveX control? I do not want standalone MS Word functions to be affected by the changes within Edraw Word Viewer.

Unable to register the Dll/OCX: Regsvr32 failed with the exit code

Getting this message at a couple of sites:

All have been 64bit Windows 2008 Servers on a Domain but we have also had successful installs on 64bit Windows 2008 Servers on a Domain.

Happens when using the Edraw Install or manually registering with regsvr32.

Install ActiveX Control

We would like to distribute the ActiveX control in our organization on several desktops. I understand we need to install the ocx and dll files. How do we install them and also what else needs to be done?
I do have the installation exe file but unfortunately we cannot push exe to desktops. Can you please help with this?

reading Excel data in excel viewer component

Have you seen a primary error in your component?

I’ve downloaded you OCX component and create a routine to use it reading Excel data. In a non-formatted cell, it read perfectly. In a formatted cell, with the currency simbol, it doesn’t read nothing.

Disable Popup Menu in MS Office

You can disable or delete the context menu item in MS Word or Excel by VBA programming.

Word:

OA1.CreateNew “Word.Document”
Set objWord = OA1.ActiveDocument
objWord.Application.CommandBars(“Text”).Controls(“Cu&t”).Enabled = False
objWord.Application.CommandBars(“Text”).Controls(“&Copy”).Enabled = False
objWord.Application.CommandBars(“Text”).Controls(“&Paste”).Enabled = False
‘delete item directly
‘objWord.Application.CommandBars(“Text”).Controls(1).Delete
‘objWord.Application.CommandBars(“Text”).Controls(2).Delete ….

Excel

OA1.Open “c:\text.xls”
Set objExcel = OA1.ActiveDocument
objExcel .Application.CommandBars(“Cell”).Controls(“Cu&t”).Enabled = False
objExcel .Application.CommandBars(“Cell”).Controls(“&Copy”).Enabled = False
objExcel .Application.CommandBars(“Cell”).Controls(“&Paste”).Enabled = False
‘delete item directly
‘objExcel .Application.CommandBars(“Cell”).Controls(1).Delete
‘objExcel .Application.CommandBars(“Cell”).Controls(2).Delete ….

Use the CAB file in your web application

The office word component can be used for web application. You can embed it at the
html Object tag.
<object classid=”clsid: 569EB2D6-161D-4AE0-9804-640E724A297A”
id=”edword” width=”100%” height=”100%”
codebase=”http://www.yoursite.com/download/edword.cab#5,0,0,131“>
</object>
Note: You should put the edword.cab file in your own site and change the
codebase url when you distribute the component.
You can view the html samples in the install folder\samples\html folder.
The edword.