<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Office Viewer Component</title>
	<atom:link href="http://www.ocxt.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ocxt.com</link>
	<description>ActiveX document container for hosting Office documents (including Microsoft Word, Microsoft Excel, Microsoft PowerPoint, Microsoft Project, and Microsoft Visio documents)</description>
	<pubDate>Tue, 01 Jul 2008 13:39:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>EDraw Office Viewer Component 5.3 Released</title>
		<link>http://www.ocxt.com/archives/48</link>
		<comments>http://www.ocxt.com/archives/48#comments</comments>
		<pubDate>Tue, 01 Jul 2008 03:38:42 +0000</pubDate>
		<dc:creator>office viewer</dc:creator>
		
		<category><![CDATA[Press Release]]></category>

		<guid isPermaLink="false">http://www.ocxt.com/archives/48</guid>
		<description><![CDATA[EDraw Office Viewer Component
Download link: http://www.ocxt.com/download/OfficeOCXSetup.exe
Online Demo: http://www.ocxt.com/online-demo
You can find the sample projects and help document in the install folder.
5.3.407.1 version is a maintenance update.
1. Provided the silent print for the MS office document.
2. Added WordGetCurrentPageIndex and WordGetTotalPageCounts to return the current page number and page counts in Word document. 
3. The ExcelGetCellValue won&#8217;t returns null when the date is numeric;
4. Supported to open an [...]]]></description>
			<content:encoded><![CDATA[<p><strong>EDraw Office Viewer Component</strong></p>
<p>Download link: <a href="http://www.ocxt.com/download/OfficeOCXSetup.exe">http://www.ocxt.com/download/OfficeOCXSetup.exe</a></p>
<p>Online Demo: <a href="http://www.ocxt.com/online-demo">http://www.ocxt.com/online-demo</a></p>
<p>You can find the sample projects and help document in the install folder.</p>
<p>5.3.407.1 version is a maintenance update.</p>
<p>1. Provided the silent print for the MS office document.</p>
<p>2. Added WordGetCurrentPageIndex and WordGetTotalPageCounts to return the current page number and page counts in Word document. </p>
<p>3. The ExcelGetCellValue won&#8217;t returns null when the date is numeric;</p>
<p>4. Supported to open an Office 2007 file from the remote server with the &#8220;Open&#8221; method directly.</p>
<p>5.3.288.1</p>
<p>1. Fixed the buffer overflow to execute arbitrary code via a long first argument to the HttpDownloadFileToTempDir method and FTPDownloadFile.</p>
<p>2. Solved the failture when saving an Excel document to the server and having a cell activated.</p>
<p>3. Removed the default overwrite reminder from Microsoft Excel if you save an open Excel file at the same position multiple times.</p>
<p>4. Solved: Return to the first page if you click the Document Map in a protected Microsoft Word document</p>
<p>5. Solved: The excel process keeps back when call the &#8220;OfficeProtectDocument&#8221; method.</p>
<p>6. Some other small improvements.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ocxt.com/archives/48/feed</wfw:commentRss>
		</item>
		<item>
		<title>Disable Popup Menu in MS Office</title>
		<link>http://www.ocxt.com/archives/87</link>
		<comments>http://www.ocxt.com/archives/87#comments</comments>
		<pubDate>Mon, 07 Apr 2008 13:09:27 +0000</pubDate>
		<dc:creator>office viewer</dc:creator>
		
		<category><![CDATA[Tech Support]]></category>

		<guid isPermaLink="false">http://www.ocxt.com/archives/87</guid>
		<description><![CDATA[You can disable or delete the context menu item in MS Word or Excel by VBA programming.
Word:
OA1.CreateNew &#8220;Word.Document&#8221;
Set objWord = OA1.ActiveDocument
objWord.Application.CommandBars(&#8221;Text&#8221;).Controls(&#8221;Cu&#038;t&#8221;).Enabled = False
objWord.Application.CommandBars(&#8221;Text&#8221;).Controls(&#8221;&#038;Copy&#8221;).Enabled = False
objWord.Application.CommandBars(&#8221;Text&#8221;).Controls(&#8221;&#038;Paste&#8221;).Enabled = False
&#8216;delete item directly
&#8216;objWord.Application.CommandBars(&#8221;Text&#8221;).Controls(1).Delete
&#8216;objWord.Application.CommandBars(&#8221;Text&#8221;).Controls(2).Delete &#8230;.
Excel
OA1.Open &#8220;c:\text.xls&#8221;
Set objExcel = OA1.ActiveDocument
objExcel .Application.CommandBars(&#8221;Cell&#8221;).Controls(&#8221;Cu&#038;t&#8221;).Enabled = False
objExcel .Application.CommandBars(&#8221;Cell&#8221;).Controls(&#8221;&#038;Copy&#8221;).Enabled = False
objExcel .Application.CommandBars(&#8221;Cell&#8221;).Controls(&#8221;&#038;Paste&#8221;).Enabled = False
&#8216;delete item directly
&#8216;objExcel .Application.CommandBars(&#8221;Cell&#8221;).Controls(1).Delete
&#8216;objExcel .Application.CommandBars(&#8221;Cell&#8221;).Controls(2).Delete &#8230;.
]]></description>
			<content:encoded><![CDATA[<p>You can disable or delete the context menu item in MS Word or Excel by VBA programming.</p>
<p>Word:</p>
<p>OA1.CreateNew &#8220;Word.Document&#8221;<br />
Set objWord = OA1.ActiveDocument<br />
objWord.Application.CommandBars(&#8221;Text&#8221;).Controls(&#8221;Cu&#038;t&#8221;).Enabled = False<br />
objWord.Application.CommandBars(&#8221;Text&#8221;).Controls(&#8221;&#038;Copy&#8221;).Enabled = False<br />
objWord.Application.CommandBars(&#8221;Text&#8221;).Controls(&#8221;&#038;Paste&#8221;).Enabled = False<br />
&#8216;delete item directly<br />
&#8216;objWord.Application.CommandBars(&#8221;Text&#8221;).Controls(1).Delete<br />
&#8216;objWord.Application.CommandBars(&#8221;Text&#8221;).Controls(2).Delete &#8230;.</p>
<p>Excel</p>
<p>OA1.Open &#8220;c:\text.xls&#8221;<br />
Set objExcel = OA1.ActiveDocument<br />
objExcel .Application.CommandBars(&#8221;Cell&#8221;).Controls(&#8221;Cu&#038;t&#8221;).Enabled = False<br />
objExcel .Application.CommandBars(&#8221;Cell&#8221;).Controls(&#8221;&#038;Copy&#8221;).Enabled = False<br />
objExcel .Application.CommandBars(&#8221;Cell&#8221;).Controls(&#8221;&#038;Paste&#8221;).Enabled = False<br />
&#8216;delete item directly<br />
&#8216;objExcel .Application.CommandBars(&#8221;Cell&#8221;).Controls(1).Delete<br />
&#8216;objExcel .Application.CommandBars(&#8221;Cell&#8221;).Controls(2).Delete &#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ocxt.com/archives/87/feed</wfw:commentRss>
		</item>
		<item>
		<title>Add some text at the end of Word document</title>
		<link>http://www.ocxt.com/archives/76</link>
		<comments>http://www.ocxt.com/archives/76#comments</comments>
		<pubDate>Wed, 05 Mar 2008 01:07:04 +0000</pubDate>
		<dc:creator>office viewer</dc:creator>
		
		<category><![CDATA[Office Automation]]></category>

		<guid isPermaLink="false">http://www.ocxt.com/archives/76</guid>
		<description><![CDATA[How to add some text at the end of document that is opened in Edraw office viewer, Kindly send me java script code so that i can enter signatures in my document. Please reply as soon as possible and send my java script Example.
]]></description>
			<content:encoded><![CDATA[<p>How to add some text at the end of document that is opened in Edraw office viewer, Kindly send me java script code so that i can enter signatures in my document. Please reply as soon as possible and send my java script Example.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ocxt.com/archives/76/feed</wfw:commentRss>
		</item>
		<item>
		<title>How to disable the file command buttons</title>
		<link>http://www.ocxt.com/archives/46</link>
		<comments>http://www.ocxt.com/archives/46#comments</comments>
		<pubDate>Sat, 23 Feb 2008 03:59:32 +0000</pubDate>
		<dc:creator>office viewer</dc:creator>
		
		<category><![CDATA[Tech Support]]></category>

		<guid isPermaLink="false">http://www.ocxt.com/archives/46</guid>
		<description><![CDATA[The Office Viewer Component provides the method &#8220;EnableFileCommand&#8221; to allow the developers to disable the File command in the MS office program.
If you are developing a web application, you can set the initial functions in the &#8220;NotifyCtrlReady&#8221; event.
function OA1_NotifyCtrlReady() {
document.OA1.EnableFileCommand(0) = false; //FileNew = 0
}
&#60;SCRIPT LANGUAGE=javascript FOR=OA1 EVENT=NotifyCtrlReady&#62;
&#60;!&#8211;
OA1_NotifyCtrlReady();
//&#8211;&#62;
&#60;/SCRIPT&#62;
More File Command ENUMS:
typedef enum FileCommandType
{
FileNew = 0,
FileOpen,
FileClose,
FileSave,
FileSaveAs,
FilePrint,
FilePageSetup,
FileProperties,
FilePrintPreview
} FileCommandType;
]]></description>
			<content:encoded><![CDATA[<p>The Office Viewer Component provides the method &#8220;EnableFileCommand&#8221; to allow the developers to disable the File command in the MS office program.</p>
<p>If you are developing a web application, you can set the initial functions in the &#8220;NotifyCtrlReady&#8221; event.</p>
<p>function OA1_NotifyCtrlReady() {<br />
document.OA1.EnableFileCommand(0) = false; //FileNew = 0<br />
}<br />
&lt;SCRIPT LANGUAGE=javascript FOR=OA1 EVENT=NotifyCtrlReady&gt;<br />
&lt;!&#8211;<br />
OA1_NotifyCtrlReady();<br />
//&#8211;&gt;<br />
&lt;/SCRIPT&gt;</p>
<p>More File Command ENUMS:</p>
<p>typedef enum FileCommandType<br />
{<br />
FileNew = 0,<br />
FileOpen,<br />
FileClose,<br />
FileSave,<br />
FileSaveAs,<br />
FilePrint,<br />
FilePageSetup,<br />
FileProperties,<br />
FilePrintPreview<br />
} FileCommandType;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ocxt.com/archives/46/feed</wfw:commentRss>
		</item>
		<item>
		<title>Hide the Office ActiveX Control in Runtime</title>
		<link>http://www.ocxt.com/archives/45</link>
		<comments>http://www.ocxt.com/archives/45#comments</comments>
		<pubDate>Thu, 03 Jan 2008 03:48:37 +0000</pubDate>
		<dc:creator>office viewer</dc:creator>
		
		<category><![CDATA[Tech Support]]></category>

		<guid isPermaLink="false">http://www.ocxt.com/archives/45</guid>
		<description><![CDATA[If you would like to hide the EDraw Office Viewer ActiveX Control in runtime, you need call the &#8220;OfficeObjectVisable&#8221; method.
For example: axOfficeViewer1.OfficeObjectVisable = false;
The follow code will lead to an error in C#.
axOfficeViewer1.Dock = System.Windows.Forms.DockStyle.Fill;
axOfficeViewer2.Visible = false;
axOfficeViewer3.Visible = false;
]]></description>
			<content:encoded><![CDATA[<p>If you would like to hide the EDraw Office Viewer ActiveX Control in runtime, you need call the &#8220;OfficeObjectVisable&#8221; method.</p>
<p>For example: axOfficeViewer1.OfficeObjectVisable = false;</p>
<p>The follow code will lead to an error in C#.</p>
<p>axOfficeViewer1.Dock = System.Windows.Forms.DockStyle.Fill;<br />
axOfficeViewer2.Visible = false;<br />
axOfficeViewer3.Visible = false;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ocxt.com/archives/45/feed</wfw:commentRss>
		</item>
		<item>
		<title>viewing excel in asp.net 2.0</title>
		<link>http://www.ocxt.com/archives/51</link>
		<comments>http://www.ocxt.com/archives/51#comments</comments>
		<pubDate>Mon, 10 Dec 2007 05:21:23 +0000</pubDate>
		<dc:creator>praetorean</dc:creator>
		
		<category><![CDATA[Suggest &amp; Feedback]]></category>

		<guid isPermaLink="false">http://www.ocxt.com/archives/51</guid>
		<description><![CDATA[i am working on a web application that would be viewing an excel file, i&#8217;m trying to use the officeviewer ocx but i am having some problem.
i tried to follow the sample code but to no avail&#8230; code as follows:
function OpenFromServer()
{document.all.OA1.Open (&#8217;http://dell33/exceldata/exceltest.xls&#8217;, &#8216;Excel.Sheet&#8217;;}
i get an error as follows: &#8220;Microsoft JScript runtime error: Invalid procedure call [...]]]></description>
			<content:encoded><![CDATA[<p>i am working on a web application that would be viewing an excel file, i&#8217;m trying to use the officeviewer ocx but i am having some problem.</p>
<p>i tried to follow the sample code but to no avail&#8230; code as follows:</p>
<p>function OpenFromServer()<br />
{document.all.OA1.Open (&#8217;http://dell33/exceldata/exceltest.xls&#8217;, &#8216;Excel.Sheet&#8217;;}</p>
<p>i get an error as follows: &#8220;Microsoft JScript runtime error: Invalid procedure call or argument&#8221;</p>
<p>please help ASAP, thanks</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ocxt.com/archives/51/feed</wfw:commentRss>
		</item>
		<item>
		<title>Play slideshow in the same window</title>
		<link>http://www.ocxt.com/archives/47</link>
		<comments>http://www.ocxt.com/archives/47#comments</comments>
		<pubDate>Sun, 23 Sep 2007 04:45:26 +0000</pubDate>
		<dc:creator>office viewer</dc:creator>
		
		<category><![CDATA[Office Automation]]></category>

		<guid isPermaLink="false">http://www.ocxt.com/archives/47</guid>
		<description><![CDATA[EDraw Office Viewer Component provides a solution for opening then playing the slideshow file in the same window. Of course you can play it with full screen mode too.
Simply call the &#8220;SlideShowOpenAndPlay&#8221; method, you can get the follow effect immediately.

You can show or hide the titlebar, screenbar, toolbar too.
You can call it via javascript or vbscript [...]]]></description>
			<content:encoded><![CDATA[<p>EDraw Office Viewer Component provides a solution for opening then playing the slideshow file in the same window. Of course you can play it with full screen mode too.</p>
<p>Simply call the &#8220;SlideShowOpenAndPlay&#8221; method, you can get the follow effect immediately.</p>
<p><img title="PowerPoint Viewer ActiveX Control" alt="PowerPoint Viewer ActiveX Control" src="http://www.ocxt.com/images/pptslide500.gif" /></p>
<p>You can show or hide the titlebar, screenbar, toolbar too.</p>
<p>You can call it via javascript or vbscript in your html page as follow.</p>
<p>document.OA1.SlideShowOpenAndPlay(&#8221;<a href="http://www.ocxt.com/demo/samples/sample.ppt">http://www.ocxt.com/demo/samples/sample.ppt</a>&#8220;, false, false, false, false);</p>
<p>OR:</p>
<p>OA1.Open(&#8221;<a href="http://www..../sample.pps">http://www&#8230;./sample.pps</a>&#8220;, &#8220;PowerPoint.Slide&#8221;);</p>
<p>OA1.SlideShowPlay(false, false, true, false);</p>
<p>[id(99), helpstring("Opens then plays the PowerPoint slide show file in the same window or full screen.")]<br />
HRESULT SlideShowOpenAndPlay([in] VARIANT Document, [in] VARIANT_BOOL bFullScreen, [in] VARIANT_BOOL bShowWebToolbar, [in] VARIANT_BOOL bLoopUntilStopped, [in] VARIANT_BOOL bShowScrollBar, [in, optional] VARIANT WebUsername, [in, optional] VARIANT WebPassword);</p>
<p>[id(100), helpstring("Plays the PowerPoint slide show file in the same window or full screen.")]<br />
HRESULT SlideShowPlay([in] VARIANT_BOOL bFullScreen, [in] VARIANT_BOOL bShowWebToolbar, [in] VARIANT_BOOL bLoopUntilStopped, [in] VARIANT_BOOL bShowScrollBar);</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ocxt.com/archives/47/feed</wfw:commentRss>
		</item>
		<item>
		<title>How to verify whether the open document is modified</title>
		<link>http://www.ocxt.com/archives/49</link>
		<comments>http://www.ocxt.com/archives/49#comments</comments>
		<pubDate>Sat, 15 Sep 2007 04:45:37 +0000</pubDate>
		<dc:creator>office viewer</dc:creator>
		
		<category><![CDATA[Tech Support]]></category>

		<guid isPermaLink="false">http://www.ocxt.com/archives/49</guid>
		<description><![CDATA[If you are developing the destop application with the office viewer component, you can use the &#8220;IsDirty&#8221; method to verify whether the open document is modified. When the open file has any modification, the IsDirty method return TRUE. After you save the document, the IsDirty return False again.
But if you are developing the web application, [...]]]></description>
			<content:encoded><![CDATA[<p>If you are developing the destop application with the office viewer component, you can use the &#8220;IsDirty&#8221; method to verify whether the open document is modified. When the open file has any modification, the IsDirty method return TRUE. After you save the document, the IsDirty return False again.</p>
<p>But if you are developing the web application, you need to add some extra codes. Because you are opening a file from remote server and the component can&#8217;t watch the file like destop application.</p>
<p>A good method is set another variable in your application. When you save the document, you set the variable true. Any time you can judge the dirty by the IsDirty method and your own variable.</p>
<p class="MsoNormal" style="text-align: left" align="left"><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma">BOOL GetIsDirty()</span></font><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma">{</span></font></p>
<p class="MsoNormal" style="text-align: left" align="left"><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma" /></font><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma">if(OA.IsDirty()==Flase) return False;</span></font></p>
<p class="MsoNormal" style="text-align: left" align="left"><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma">else return m_bDirty;</span></font></p>
<p class="MsoNormal" style="text-align: left" align="left"><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma">}</span></font></p>
<p><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma"></p>
<div><font face="Verdana" color="#0000ff" size="2"><span style="font-size: 10pt; color: blue; font-family: Verdana">event </span></font><font face="Tahoma" color="#010001" size="2"><span style="font-size: 10pt; color: #010001; font-family: Tahoma">OnDocumentOpened</span></font><font face="Tahoma" color="#000000" size="2"><span style="font-size: 10pt; color: black; font-family: Tahoma">()</span></font><font size="3"><span style="font-size: 12pt"> </p>
<p></span></font></div>
<div><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma">{</span></font><font size="3"><span style="font-size: 12pt"> </p>
<p></span></font></div>
<div><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma">m_bDirty = false;</span></font><font size="3"><span style="font-size: 12pt"> </p>
<p></span></font></div>
<div>
<p class="MsoNormal" style="text-align: left" align="left"><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma">}</span></font></p>
<p class="MsoNormal" style="text-align: left" align="left"><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma">function UploadFile()</span></font></p>
<p class="MsoNormal" style="text-align: left" align="left"><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma">{</span></font></p>
<p class="MsoNormal" style="text-align: left" align="left"><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma">&#8230;&#8230;</span></font></p>
<p class="MsoNormal" style="text-align: left" align="left"><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma">m_bDirty = False;</span></font></p>
<p class="MsoNormal" style="text-align: left" align="left"><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma">}</span></font></p>
</div>
<p></span></font></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ocxt.com/archives/49/feed</wfw:commentRss>
		</item>
		<item>
		<title>Enumerate the menu name in MS Office</title>
		<link>http://www.ocxt.com/archives/88</link>
		<comments>http://www.ocxt.com/archives/88#comments</comments>
		<pubDate>Fri, 07 Sep 2007 13:19:47 +0000</pubDate>
		<dc:creator>office viewer</dc:creator>
		
		<category><![CDATA[Suggest &amp; Feedback]]></category>

		<guid isPermaLink="false">http://www.ocxt.com/archives/88</guid>
		<description><![CDATA[Sub ListShortCutMenus()
    Cells.Clear
    Application.ScreenUpdating = False
    Row = 1
    For Each cbar In CommandBars
        If cbar.Type = msoBarTypePopup Then
            Cells(Row, 1) = cbar.Index
   [...]]]></description>
			<content:encoded><![CDATA[<p>Sub ListShortCutMenus()<br />
    Cells.Clear<br />
    Application.ScreenUpdating = False<br />
    Row = 1<br />
    For Each cbar In CommandBars<br />
        If cbar.Type = msoBarTypePopup Then<br />
            Cells(Row, 1) = cbar.Index<br />
            Cells(Row, 2) = cbar.Name<br />
            For col = 1 To cbar.Controls.Count<br />
                Cells(Row, col + 2) = _<br />
                 cbar.Controls(col).Caption<br />
            Next col<br />
            Row = Row + 1<br />
        End If<br />
    Next cbar<br />
    Cells.EntireColumn.AutoFit<br />
End Sub</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ocxt.com/archives/88/feed</wfw:commentRss>
		</item>
		<item>
		<title>Solved the &#8220;Click to activate and user the control&#8221;</title>
		<link>http://www.ocxt.com/archives/43</link>
		<comments>http://www.ocxt.com/archives/43#comments</comments>
		<pubDate>Sat, 01 Sep 2007 06:59:03 +0000</pubDate>
		<dc:creator>office viewer</dc:creator>
		
		<category><![CDATA[Tech Support]]></category>

		<guid isPermaLink="false">http://www.ocxt.com/archives/43</guid>
		<description><![CDATA[Users cannot directly interact with ActiveX controls loaded by the APPLET, EMBED, or OBJECT elements. Users can interact with such controls after activating their user interfaces. This topic describes how Microsoft Internet Explorer handles ActiveX controls, shows how to load ActiveX controls so their interfaces are activated, and describes the impact of this behavior on [...]]]></description>
			<content:encoded><![CDATA[<p>Users cannot directly interact with ActiveX controls loaded by the APPLET, EMBED, or OBJECT elements. Users can interact with such controls after activating their user interfaces. This topic describes how Microsoft Internet Explorer handles ActiveX controls, shows how to load ActiveX controls so their interfaces are activated, and describes the impact of this behavior on accessibility tools and applications hosting the WebBrowser Control.</p>
<p>To activate an interactive control, either click it or use the TAB key to set focus on it and then press the SPACEBAR or the ENTER key. Interactive controls loaded from external script files immediately respond to user interaction and do not need to be activated.</p>
<p>To create Web pages that load interactive controls that respond immediately to user input, use Microsoft JScript to load controls from external script files. You cannot write script elements inline with the main HTML page to load your control externally. If the script is written inline programmatically, for example with the writeln function, the loaded control will behave as if it was loaded by the HTML document itself and will require activation. To ensure a control is interactive when it is loaded, use one of the following techniques to load your control from an external file.</p>
<p>We have provide a solution to activate the Office Viewer Component automatically when loading a page.</p>
<p><strong>OADemo.php</strong></p>
<p>&lt;object classid=&#8221;clsid:6BA21C22-53A5-463F-BBE8-5CF7FFA0132B&#8221; id=&#8221;OA1&#8243; width=&#8221;674&#8243; height=&#8221;500&#8243; &#8230;.<br />
&lt;/object&gt;<br />
&lt;script language=&#8221;JavaScript&#8221; type=&#8221;text/javascript&#8221; src=&#8221;NoIEActivate.js&#8221;&gt;&lt;/script&gt;</p>
<p><strong>NoIEActivate.js</strong></p>
<p>n=navigator.userAgent;<br />
 w=n.indexOf(&#8221;MSIE&#8221;);<br />
 if((w&gt;0)&#038;&#038;(parseInt(n.charAt(w+5))&gt;5)){<br />
 T=["object","embed","applet"];<br />
 for(j=0;j&lt;2;j++){<br />
 E=document.getElementsByTagName(T[j]);<br />
 for(i=0;i&lt;E.length;i++){<br />
 P=E[i].parentNode;<br />
 H=P.innerHTML;<br />
 P.removeChild(E[i]);<br />
 P.innerHTML=H;<br />
 }}}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ocxt.com/archives/43/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
