How to go to special postion in the MS Word

Edraw Viewer Component for Word added some methods to do the office automation. The GotoItem method helps to position the cursor in MS Word document.

boolean GotoItem([in] WdGoToItem What, [in]
WdGoToDirection Which, [in, optional] VARIANT Count, [in,
optional] VARIANT Name);
Goes to the specified item in the Word document.
What: Optional Object. The kind of item to which the range or selection is moved. Can be one
of the WdGoToItem constants.
Which: Optional Object. The item to which the range or selection is moved. Can be one of the
WdGoToDirection constants.
Count: Optional Object. The number of the item in the document. The default value is 1.
Only positive values are valid. To specify an item that precedes the range or selection, use
wdGoToPrevious as the Which argument and specify a Count value.
Name: Optional Object. If the What argument is wdGoToBookmark, wdGoToComment,
wdGoToField, or wdGoToObject, this argument specifies a name.
enum WdGoToItem
{
wdGoToStart = 101,
wdGoToEnd = 102,
wdGoToBookmark = -1 ,
wdGoToComment = 6 ,
wdGoToEndnote = 5 ,
wdGoToEquation = 10 ,
wdGoToField = 7 ,
wdGoToFootnote = 4 ,
wdGoToGrammaticalError= 14 ,
wdGoToGraphic = 8 ,
wdGoToHeading= 11 ,
wdGoToLine = 3 ,
wdGoToObject = 9 ,
wdGoToPage = 1 ,
wdGoToPercent = 12 ,
wdGoToProofreadingError = 15 ,
wdGoToSection = 0 ,
wdGoToSpellingError = 13 ,
wdGoToTable = 2 ,
}WdGoToItem;
enum WdGoToDirection
{
wdGoToAbsolute = 1,
wdGoToFirst = 1,
wdGoToLast = -1 ,
wdGoToNext = 2 ,
wdGoToPrevious = 3 ,
wdGoToRelative = 2 ,
}WdGoToDirection;
Example
The following java script shows how to go to the file end.
function GoToItem_Example ()
{
Edword.GoToItem( 102, 1 );
}

Kill dozens of Excel.exe processes stacking up in Task Manager

The Edraw Office Viewer Component V5.6 fixed the bug which the component closes the Excel document (but leaves Excel running) if I have Excel open in another window. Fixed the bug which The Excel process in background is still running and not terminated actually.

How to add Word Component to your ASP.NET project

It’s very easy to embed the MS Word in your asp.net project.  Please follow the steps:
1. Open Visual Studio.
2. Create a new ASP.NET project.
3. Don not attempt to add the Edraw Viewer Component for Word to the
Toolbox. It is a client component. You can add it as the HTML Object.
4. Copy all files at the ASP_c#\ to the new project folder.
( UploadAction.aspx UploadAction.aspx.cs Default.aspx.cs Default.aspx
Tester.doc )
5. Then add exist items…
6. Modify the Server Port in the Default.aspx.
6. Run.

Embed Word and excel program in Visual Basic project

How to add Edraw Excel Viewer Component or Word Viewer ActiveX Control to your Visual Basic 6.0 project

1. From the Project Menu select Components…
2. Select control “EDWord ActiveX Control Module” in the controls table.
3. Click the OK Button.
4. The control will now appear in your toolbox.
5. Drag and drop the control on your form.
6. Right click the control then choose the View Code… item.
7. Add the NotifyCtrlReady event and set the library file to load.
Private Sub EDWord1_NotifyCtrlReady()
EDWord1.LicenseName = “”
EDWord1.LicenseCode = “”
End Sub
8. Run the project.

Microsoft Word web toolbar enable

Hi, 

We develop a web document app using DSOFRAMER.

We have a lot of issues… one of them is that in Office 2003 when our application open a word document it enable the word toolbar.

 

With your product, is posible to hide it programmatically ? 

If the customer uses Office 2007, the web office documents can open good in the web browser or directly open the Word´s program ?

 

Thanks in advance

 

 

With your product is posible to hide this toolbar programmaticaly ?

Other question, if the customer uses Office 2007, the word document opens in the web page or open Word´s program ?

Thanks in advance,

Emilio

 

Microsoft Word right-click menu doesn’t work

The combination of IE7 and Microsoft Word 2007 results in the failure of the Microsoft Word right-click menu.  The right-click menu starts to come up, and then it immediately disappears. I tested this on multiple web clients and they all had the same problem.

The MS Word right-click menu works with older versions of IE and older versions of MS Word, but the combination of IE7 and MS Word 2007 seems to cause the right-click MS Word menu to fail.

The bookmark methods in the Word component

long GetBookmarkCount();
Returns the number of bookmarks.
BSTR ReadBookmarkInfo([in] long Pos, [in] boolean
NameOrValue);
Returns the name or value of the special bookmark.
Pos: The index of bookmarks in the document. From 1 to …
NameOrValue: True returns the bookmark name, False returns the bookmark value.
Example
The following java script shows how to read the bookmark information.
function Readbookmark_Example ()
{
Var count = edword.GetBookmarkCount();
For(int i=1; i<=count; i++)
{
Var name = edword.GetBookmarkInfo(i, true);
Var value = edword.GetBookmarkInfo(i, false);
}
boolean WriteBookmarkInfo([in] BSTR Name, [in] BSTR
Value);
Writes the value for the special bookmark.
Name: The bookmark name.
Value: The bookmark value.

viewing excel in asp.net 2.0

i am working on a web application that would be viewing an excel file, i’m trying to use the officeviewer ocx but i am having some problem.

i tried to follow the sample code but to no avail… code as follows:

function OpenFromServer()
{document.all.OA1.Open (‘http://dell33/exceldata/exceltest.xls’, ‘Excel.Sheet’;}

i get an error as follows: “Microsoft JScript runtime error: Invalid procedure call or argument”

please help ASAP, thanks

PDF Viewer Component – Protect the PDF Document from modification

Protect the PDF Document from modification.
Function: void SetReadOnly ();
Description: Protects the current open pdf document.
 1. Hide the File toolbar
 2. Disable the Copy button
 3. Hide the Right click menu
 4. Disable the Save, Print, Copy, Show/Hide Toolbar hot key.
 
 PDFViewer1.SetReadOnly();
 Tips:
 If you want to set read only property when you load a pdf file, you need put the method at OnDocumentOpened event.
 &lt;SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript&gt;
 function PDFViewer1_NotifyCtrlReady()
 {
 //document.PDFViewer1.LicenseName = “yourlicensename”;
 //document.PDFViewer1.LicenseKey = “yourlicensename”;
 document.PDFViewer1.LoadFile (“e:\\OA_Reference2.pdf”);
 }
 function PDFViewer1_OnDocumentOpened(FileName)
 {
 document.PDFViewer1.SetReadOnly();
 }
 &lt;/SCRIPT&gt;
 &lt;SCRIPT LANGUAGE=javascript FOR=PDFViewer1 EVENT=NotifyCtrlReady&gt;
 &lt;!–
 PDFViewer1_NotifyCtrlReady();
 //–&gt;
 &lt;/SCRIPT&gt;
 &lt;SCRIPT LANGUAGE=javascript FOR=PDFViewer1 EVENT=OnDocumentOpened(FileName)&gt;
 &lt;!–
 PDFViewer1_OnDocumentOpened(FileName);
 //–&gt;
 &lt;/SCRIPT&gt;

PDF Viewer Component – ApplyNamedDest

Function: boolean ApplyNamedDest (BSTR nameDest);
Description: Changes the page view to the named destination in the specified string.
Params: The named destination to which the viewer will go.