Posted by office viewer on January 28th, 2009
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.
Posted by office viewer on January 15th, 2009
The new version has the GetApplication method. You can use it to replace the Application method.
If you want to call the print dialog, you can use the follow method.
EDOffice.PrintDialog
Posted by office viewer on January 15th, 2009
If you are developing the destop application with the office viewer component, you can use the “IsDirty” 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, you need to add some extra codes. Because you are opening a file from remote server and the component can’t watch the file like destop application.
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.
BOOL GetIsDirty(){
if(OA.IsDirty()==Flase) return False;
else return m_bDirty;
}
event OnDocumentOpened()
{
m_bDirty = false;
}
function UploadFile()
{
……
m_bDirty = False;
}
Posted by office viewer on January 1st, 2009
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
Windows 2000/XP/2003/Vista/Windows 7
Office 2000/XP/2003/2007/2010
For web application: The component need IE Protection Mode was Turn Off.
You can added your site at the IE trusted site list to turn off the IE protection mode
automatically when the users visit your site with the component.
Please consider also your application’s requirements.
Recent Comments