<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Office Viewer Component &#187; FAQ</title>
	<atom:link href="http://www.ocxt.com/archives/category/faq/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ocxt.com</link>
	<description>ActiveX document container for hosting Office documents and PDF (including Adobe PDF, Microsoft Word, Microsoft Excel, Microsoft PowerPoint, Microsoft Project and Microsoft Visio documents)</description>
	<lastBuildDate>Sat, 28 Jan 2012 11:37:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How To Import Edraw Office Viewer ActiveX Control in Delphi</title>
		<link>http://www.ocxt.com/archives/137</link>
		<comments>http://www.ocxt.com/archives/137#comments</comments>
		<pubDate>Wed, 13 Oct 2010 12:16:04 +0000</pubDate>
		<dc:creator>office viewer</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[delphi office]]></category>

		<guid isPermaLink="false">http://www.ocxt.com/?p=137</guid>
		<description><![CDATA[Edraw Office Viewer Component can display and interact office document in the delphi program. Here is how to import Edraw Office Viewer ActiveX Control in Delphi. 1. Start Delphi and select Component &#124; Import ActiveX Control&#8230; (recommend Delphi 2007/2009) 2. Look for the Edraw Office Viewer Component you wish to import (dialog displays the ActiveX controls registered [...]]]></description>
			<content:encoded><![CDATA[<p>Edraw Office Viewer Component can display and interact office document in the delphi program. Here is how to import Edraw Office Viewer ActiveX Control in Delphi.<br />
1. Start Delphi and select Component | Import ActiveX Control&#8230; (recommend Delphi 2007/2009)</p>
<p>2. Look for the Edraw Office Viewer Component you wish to import (dialog displays the ActiveX controls registered on your system).</p>
<p>3. Select the Component palette location in which you want to place selected library.</p>
<p>4. Maybe the best is to leave the ActiveX option selected.</p>
<p>5. Click on Install.</p>
<p>6. Select a package where the new component must be installed or</p>
<p>7. Create a new package for the new TSomeActiveX control.</p>
<p>8. Click on OK.</p>
<p>9. Delphi will prompt you whether you want to rebuild the modified/new package or not.</p>
<p>10. Click on Yes.</p>
<p>11. After the package is compiled, Delphi will show you a message saying that the new Office Viewer Component was registered and already available as part of the VCL.</p>
<p>12. Close the package detail window, allowing Delphi to save the changes to it.</p>
<p>13. The component is now available in the ActiveX tab (if you didn&#8217;t change this setting in step 4)</p>
<p>14. Drop the component on a form, and simply: use it.</p>
<p>Tips:<br />
1. In step 3, selecting the component palette for new Edraw Office Viewer Component allows you to group controls by function or vendor, for example.<br />
2. The component wrapper is linked into the application executable file (or a runtime package), but the .OCX file for the component also needs to be deployed with the application.<br />
3. ActiveX controls need to be registered on the deployment computer before use. Installation programs such as InstallShield Express automate this registration process.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ocxt.com/archives/137/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open password protected word and excel file programmatically</title>
		<link>http://www.ocxt.com/archives/172</link>
		<comments>http://www.ocxt.com/archives/172#comments</comments>
		<pubDate>Fri, 12 Mar 2010 14:18:08 +0000</pubDate>
		<dc:creator>office viewer</dc:creator>
				<category><![CDATA[FAQ]]></category>

		<guid isPermaLink="false">http://www.ocxt.com/?p=172</guid>
		<description><![CDATA[The Edraw Excel Viewer Component and Word Viewer Component support to ppen password protected word and excel file programmatically. You need call the SetValue method to set the password and writepassword before you call the Open method. boolean SetValue([in] BSTR Name, [in] BSTR Value); Sets the pasword, writepassword, domain and protectmodereminder for the document. Name: [...]]]></description>
			<content:encoded><![CDATA[<p>The Edraw Excel Viewer Component and Word Viewer Component support to ppen password protected word and excel file programmatically. You need call the SetValue method to set the password and writepassword before you call the Open method.</p>
<p>boolean SetValue([in] BSTR Name, [in] BSTR Value);<br />
Sets the pasword, writepassword, domain and protectmodereminder<br />
for the document.<br />
Name: The name string.<br />
Value: The value string.<br />
Example<br />
The following vb script shows how to open a password-protected document. if the 1.docx file<br />
has the password 1234, the writepassword 5678, you can use the follow sample.<br />
Sub SetValue_Example()<br />
edword.SetValue &#8220;Password”, “1234”<br />
edword.SetValue &#8220;WritePassword”, “5678”<br />
edword.Open “c:\1.docx”<br />
End Sub</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ocxt.com/archives/172/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clear the ActiveX CAB file from IE Cache</title>
		<link>http://www.ocxt.com/archives/186</link>
		<comments>http://www.ocxt.com/archives/186#comments</comments>
		<pubDate>Sun, 15 Feb 2009 15:08:54 +0000</pubDate>
		<dc:creator>office viewer</dc:creator>
				<category><![CDATA[FAQ]]></category>

		<guid isPermaLink="false">http://www.ocxt.com/?p=186</guid>
		<description><![CDATA[For IE7 or IE8, you can delete the IE Addon with the follow method:   1. Open a new Internet Explore.   2. Go to Internet Explorer, and click the &#8220;Tools&#8221; button in the left of browser, and then click Manage Add-ons.    3. Click Toolbars and Extensions    4. Double Click the add-on you [...]]]></description>
			<content:encoded><![CDATA[<p>For IE7 or IE8, you can delete the IE Addon with the follow method:<br />
 <br />
1. Open a new Internet Explore.<br />
 <br />
2. Go to Internet Explorer, and click the &#8220;Tools&#8221; button in the left of browser, and then click Manage Add-ons. <br />
 <br />
3. Click Toolbars and Extensions <br />
 <br />
4. Double Click the add-on you want to delete. In the pop up message box, you can click the Delete button in the bottom.<br />
 <br />
For IE6, you can delete the IE Addon with the follow method:<br />
 <br />
IE Toolbar &gt; Options &gt; General &gt; Setting &gt; View Object&#8230; </p>
<p>Then delete the Edraw Viewer Component for Word.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ocxt.com/archives/186/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Office Component System Requirements</title>
		<link>http://www.ocxt.com/archives/163</link>
		<comments>http://www.ocxt.com/archives/163#comments</comments>
		<pubDate>Thu, 01 Jan 2009 10:45:35 +0000</pubDate>
		<dc:creator>office viewer</dc:creator>
				<category><![CDATA[FAQ]]></category>

		<guid isPermaLink="false">http://www.ocxt.com/?p=163</guid>
		<description><![CDATA[Edraw compnent system requirements Hardware : Minimum: Pentium Based MMX processor 500 MHZ 256 MB of ram SVGA Graphics card 64 MB HardDisk Recommended: Intel Celeron or AMD Duron 1 GHz and above 1 GB ram SVGA Graphics card with some acceleration (1024x768x16bitsColor) Software : Minimum: Windows 2000 with IE6 and above. Recommended: IE 6/7/8 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Edraw compnent system requirements</strong></p>
<p>Hardware :<br />
Minimum:<br />
Pentium Based MMX processor 500 MHZ<br />
256 MB of ram<br />
SVGA Graphics card<br />
64 MB HardDisk<br />
Recommended:<br />
Intel Celeron or AMD Duron 1 GHz and above<br />
1 GB ram<br />
SVGA Graphics card with some acceleration (1024x768x16bitsColor)<br />
Software :<br />
Minimum:<br />
Windows 2000 with IE6 and above.<br />
Recommended:<br />
IE 6/7/8<br />
Windows 2000/XP/2003/Vista/Windows 7<br />
Office 2000/XP/2003/2007/2010<br />
For web application: The component need IE Protection Mode was Turn Off.<br />
You can added your site at the IE trusted site list to turn off the IE protection mode<br />
automatically when the users visit your site with the component.<br />
Please consider also your application&#8217;s requirements.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ocxt.com/archives/163/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open a Stream from Server without temporary file</title>
		<link>http://www.ocxt.com/archives/38</link>
		<comments>http://www.ocxt.com/archives/38#comments</comments>
		<pubDate>Sat, 11 Aug 2007 12:49:19 +0000</pubDate>
		<dc:creator>office viewer</dc:creator>
				<category><![CDATA[FAQ]]></category>

		<guid isPermaLink="false">http://www.ocxt.com/archives/38</guid>
		<description><![CDATA[In Office Viewer new version, you can use OpenFileFromStream to open a appointed file or open a file in database. Either you want to open an appointed file or open a file from database, for client side, all what you need do is the same, like following: m_oEdrawOfficeViewer.HttpInit(); m_oEdrawOfficeViewer.HttpAddpostString(L&#8221;DocumentID&#8221;, L&#8221;Tester.doc&#8221;); m_oEdrawOfficeViewer.HttpOpenFileFromStream(strDownloadPath,varOpt,varOpt,varOpt); Before you call function [...]]]></description>
			<content:encoded><![CDATA[<p>In Office Viewer new version, you can use OpenFileFromStream to open a appointed file or open a file in database.</p>
<p>Either you want to open an appointed file or open a file from database, for client side, all what you need do is the<br />
same, like following:</p>
<p>m_oEdrawOfficeViewer.HttpInit();<br />
m_oEdrawOfficeViewer.HttpAddpostString(L&#8221;DocumentID&#8221;, L&#8221;Tester.doc&#8221;);<br />
m_oEdrawOfficeViewer.HttpOpenFileFromStream(strDownloadPath,varOpt,varOpt,varOpt);</p>
<p>Before you call function HttpOpenFileFromStream, you should do two things, one is to initialize http for clearing all parameters and cookies in http, another thing is to appoint the file or database record. And then use HttpOpenFileFromStream to send the request to the destinated webpage.<br />
Before HttpOpenFileFromStream send request, it will add a couple of parameters automatically.<br />
m_OAHttp.AddPostArgument(L&#8221;EDA_GETSTREAMDATA&#8221;, L&#8221;EDA_YES&#8221;);<br />
This couple of parameters tell the destinated webpage OfficeViewer will received file as stream.</p>
<p>At the web side, webpage will decide to read which file or database reacord accordding to the post parameters.<br />
And you should add boundary flag &#8216;EDA_STREAMBOUNDARY&#8217; to file data, following is the asp.net demo.</p>
<p>if (Request.Params["EDA_GETSTREAMDATA"] == &#8220;EDA_YES&#8221;)<br />
{<br />
  String fullFileName = Server.MapPath(Request.Params["DocumentID"]);<br />
  Byte[] fs = File.ReadAllBytes(fullFileName);</p>
<p>  Response.Write(&#8220;Get Stream Successfully!&#8221;);<br />
  Response.Write(&#8220;EDA_STREAMBOUNDARY&#8221;);<br />
  Response.BinaryWrite(fs);<br />
  Response.Write(&#8220;EDA_STREAMBOUNDARY&#8221;);<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ocxt.com/archives/38/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>How to Save the opened file to server?</title>
		<link>http://www.ocxt.com/archives/4</link>
		<comments>http://www.ocxt.com/archives/4#comments</comments>
		<pubDate>Mon, 07 May 2007 07:56:22 +0000</pubDate>
		<dc:creator>office viewer</dc:creator>
				<category><![CDATA[FAQ]]></category>

		<guid isPermaLink="false">http://www.edrawsoft.com/weboffice/blog/?p=4</guid>
		<description><![CDATA[Yes, EDraw Web Office Component provides a &#8220;save&#8221; method to save the opened file to a web server or local hard disk. [id(27), helpstring("Saves the document to specified location or its original location.")] boolean Save([in, optional] VARIANT SaveAsDocument, [in, optional] VARIANT WebUsername, [in, optional] VARIANT WebPassword);   For example: OA1.Save OA1.Save &#8220;c:\temp.doc&#8221; OA1.Save &#8220;http://www.ocxt.com/demo/upload.aspx&#8220;, &#8220;username&#8221;, &#8220;password&#8221;  ]]></description>
			<content:encoded><![CDATA[<p>Yes, EDraw Web Office Component provides a &#8220;save&#8221; method to save the opened file to a web server or local hard disk.</p>
<p>[id(27), helpstring("Saves the document to specified location or its original location.")]<br />
boolean Save([in, optional] VARIANT SaveAsDocument, [in, optional] VARIANT WebUsername, [in, optional] VARIANT WebPassword);  </p>
<p>For example:</p>
<p>OA1.Save</p>
<p>OA1.Save &#8220;c:\temp.doc&#8221;</p>
<p>OA1.Save &#8220;<a href="http://www.ocxt.com/demo/upload.aspx">http://www.ocxt.com/demo/upload.aspx</a>&#8220;, &#8220;username&#8221;, &#8220;password&#8221;</p>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.ocxt.com/archives/4/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ActiveX control Definition</title>
		<link>http://www.ocxt.com/archives/25</link>
		<comments>http://www.ocxt.com/archives/25#comments</comments>
		<pubDate>Sat, 05 May 2007 23:32:10 +0000</pubDate>
		<dc:creator>office viewer</dc:creator>
				<category><![CDATA[FAQ]]></category>

		<guid isPermaLink="false">http://www.ocxt.com/archives/25</guid>
		<description><![CDATA[An ActiveX control is essentially an OLE or Component Object Model (COM) object. It is a self-registering program or control; that is, it adds registry entries for itself automatically the first time it is run. An ActiveX control can be as simple as a text box, as complex as an Office Viewer Component, and in [...]]]></description>
			<content:encoded><![CDATA[<p>An ActiveX control is essentially an OLE or Component Object Model (COM) object. It is a self-registering program or control; that is, it adds registry entries for itself automatically the first time it is run.</p>
<p>An ActiveX control can be as simple as a text box, as complex as an Office Viewer Component, and in some cases as complex as a small application. ActiveX controls are used as controls or dialogs for Internet Web sites, as add-ins to major applications from third-party vendors, and as plug-in utilities. Therefore, ActiveX is synonymous with Java, Netscape plug-ins, and scripting. However, the advantage of ActiveX over these other programming options is that ActiveX controls can also be used in applications written in different programming languages, including all of the Microsoft programming and database languages.</p>
<p>ActiveX controls are not stand-alone solutions. They can only be run from within host applications, such as Internet Explorer, a Microsoft Visual Basic® application, Visual C++® development system, Visual Basic, Delphi, DotNet for Applications, and so on. ActiveX controls facilitate the distribution of specialized controls over networks and the integration of those controls within Web browsers. This includes the ability of the control to identify itself to applications that use ActiveX controls.</p>
<p>ActiveX controls can be scripted from Web pages. This means you can use an ActiveX control to provide a control for a user interface or graphics device interface element. Once created, you can use a scripting language such as Visual Basic Scripting Edition (VBScript) or JavaScript to use the control. Your script instructs the control how to work.</p>
<p>EDraw Office Viewer Component is a standard ActiveX Control. It can be intergrated into the other develop circumstance supports the ActiveX Control.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ocxt.com/archives/25/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>regsvr32 fails to DllRegisterServer in Vista</title>
		<link>http://www.ocxt.com/archives/12</link>
		<comments>http://www.ocxt.com/archives/12#comments</comments>
		<pubDate>Fri, 04 May 2007 01:40:36 +0000</pubDate>
		<dc:creator>office viewer</dc:creator>
				<category><![CDATA[FAQ]]></category>

		<guid isPermaLink="false">http://www.ocxt.com/archives/12</guid>
		<description><![CDATA[Question  I am using Vista Beta 2 and Web Office Component with Visual Studio 2005. When attempting to register a COM object (e.g. Active-X component or OCX) with ‘Regsvr32’, i.e.: regsvr32 COM it fails with a message box displaying: DllRegisterServer in COM failed. Return code was: 0&#215;80070005 Where ‘COM’ is the name of the COM object file. [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Question </strong></p>
<p>I am using Vista Beta 2 and Web Office Component with Visual Studio 2005.</p>
<p>When attempting to register a COM object (e.g. Active-X component or OCX) with ‘Regsvr32’, i.e.: regsvr32 COM</p>
<p>it fails with a message box displaying:</p>
<p>DllRegisterServer in COM failed.<br />
Return code was: 0&#215;80070005</p>
<p>Where ‘COM’ is the name of the COM object file.</p>
<p><strong>CAUSE</strong></p>
<p>This behavior may occur if you try to register a DLL by using Regsrv32 while you are logged on using an account that does not have administrative credentials, such as an account that is a member of the standard users group. An account that does not have administrative credentials cannot write to the registry or change files in the System32 folder.</p>
<p>The behavior occurs because Windows XP and Windows Server 2003 use a more restrictive security scheme than earlier versions of Windows use. This scheme prevents standard users from registering DLLs.</p>
<p><strong>There are some solutions as follow:</strong></p>
<p>1. Login in as Administrator.</p>
<p>2. Set &#8220;Run as Administrator&#8221; property of regsvr32.exe  </p>
<p>3. Turned off UAC (User Account Control) in Vista OS.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ocxt.com/archives/12/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>System Requirement for EDraw Office Viewer Component</title>
		<link>http://www.ocxt.com/archives/21</link>
		<comments>http://www.ocxt.com/archives/21#comments</comments>
		<pubDate>Sun, 29 Apr 2007 04:09:22 +0000</pubDate>
		<dc:creator>office viewer</dc:creator>
				<category><![CDATA[FAQ]]></category>

		<guid isPermaLink="false">http://www.ocxt.com/archives/21</guid>
		<description><![CDATA[The client needs Microsoft Office installed. If you want to view the Microsoft Word document, you need Microsoft Word installed in your cient. If you are doing the web application with the EDraw office Viewer Component, you can choose the any type server such as Linux, Unix or Windows. Support Office 2000/XP/2003/2007 Support Windows 2000/XP/2003/Vista Note: Please [...]]]></description>
			<content:encoded><![CDATA[<p>The client needs Microsoft Office installed. If you want to view the Microsoft Word document, you need Microsoft Word installed in your cient.</p>
<p>If you are doing the web application with the EDraw office Viewer Component, you can choose the any type server such as Linux, Unix or Windows.</p>
<ul>
<li>Support Office 2000/XP/2003/2007</li>
<li>Support Windows 2000/XP/2003/Vista</li>
</ul>
<p>Note: Please test our product before you buy our product firstly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ocxt.com/archives/21/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating the CAB files for Office Viewer Component</title>
		<link>http://www.ocxt.com/archives/22</link>
		<comments>http://www.ocxt.com/archives/22#comments</comments>
		<pubDate>Sun, 15 Apr 2007 04:58:18 +0000</pubDate>
		<dc:creator>office viewer</dc:creator>
				<category><![CDATA[FAQ]]></category>

		<guid isPermaLink="false">http://www.ocxt.com/archives/22</guid>
		<description><![CDATA[If your control will be used on web pages, it is very convenient to distribute it as a .cab (cabinet file)This is a compressed archive &#8211; the classic use is to put the .cab file on a web server, and refer to it from web pages that host the control. Internet Explorer is smart enough [...]]]></description>
			<content:encoded><![CDATA[<p>If your control will be used on web pages, it is very convenient to distribute it as a .cab (cabinet file)This is a compressed archive &#8211; the classic use is to put the .cab file on a web server, and refer to it from web pages that host the control. Internet Explorer is smart enough to download and install the control if it is not already installed on the client machine, and to selectively update any files that are newer in the .cab file. Microsoft provides Makecab.exe for creating and editing .cab files.</p>
<p>In the install directory you can find the CAB file. We have created it for you. But if you want to create a new CAB file with the Office Viewer Component, you can download the CabArc.Exe from Microsoft official site.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ocxt.com/archives/22/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

