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.

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.

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.
 <SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
 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();
 }
 </SCRIPT>
 <SCRIPT LANGUAGE=javascript FOR=PDFViewer1 EVENT=NotifyCtrlReady>
 <!–
 PDFViewer1_NotifyCtrlReady();
 //–>
 </SCRIPT>
 <SCRIPT LANGUAGE=javascript FOR=PDFViewer1 EVENT=OnDocumentOpened(FileName)>
 <!–
 PDFViewer1_OnDocumentOpened(FileName);
 //–>
 </SCRIPT>

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.

PDF Viewer Component - ApplyViewRect

Function: boolean ApplyViewRect(float left, float top, float width, float height)
Description: Sets the view rectangle according to the specified coordinates.
Param:
left - The upper left horizontal coordinate.
top - The vertical coordinate in the upper left corner.
width - The horizontal width of the rectangle.
height - The vertical height of the rectangle.

PDF Viewer Component - PrintPages

boolean PrintPages(long from, long to);
Description: Prints the specified pages without displaying a user dialog box. The current printer, page settings, and job settings are used.This method returns immediately, even if the printing has not completed. NOTE: If security settings do not allow printing, this method will be ignored.
Param:
from - The page number of the first page to be printed. The first page in a document is page 0.
to - The page number of the last page to be printed.

PDF Viewer Component - PrintPagesFit

Function: boolean PrintPagesFit(long from, long to, boolean shrinkToFit);
Description: Prints the specified pages without displaying a user dialog box. The current printer, page settings, and job settings are used. This method returns immediately, even if the printing has not completed. NOTE:If security settings do not allow printing, this method will be ignored.
Param:
from - The page number of the first page to be printed. The first page in a document is page 0.
to - The page number of the last page to be printed.
shrinkToFit - Specifies whether the pages will be shrunk, if necessary, to fit into the imageable area of a page in the printer.

PDF Viewer Component - PrintAll

Function: boolean PrintAll ();
Description: Prints the entire document without displaying a user dialog box. The current printer, page settings, and job settings are used. This method returns immediately, even if the printing has not completed. NOTE: If security settings do not allow printing, this method will be ignored.

Enumerate the menu name in MS Office

Sub ListShortCutMenus()
Cells.Clear
Application.ScreenUpdating = False
Row = 1
For Each cbar In CommandBars
If cbar.Type = msoBarTypePopup Then
Cells(Row, 1) = cbar.Index
Cells(Row, 2) = cbar.Name
For col = 1 To cbar.Controls.Count
Cells(Row, col + 2) = _
cbar.Controls(col).Caption
Next col
Row = Row + 1
End If
Next cbar
Cells.EntireColumn.AutoFit
End Sub