Is it possible to show some Word Document (or Excel document) in a UniGUI Frame ?
2012-10-24 23:24
791 查看
If no-one has any better idea's you might want look at using TUniUrlFrame to open documents using javascript
There is example at http://www.kavoir.co...es-in-html.html
but it uses activex so restricts functionality to IE
Glen
<script type="text/javascript">
function openWord(strFilePath) {
var yourSite = "http://www.yoursite.com";
openWordDocPath(yourSite + strFilePath);
}
function openWordDocPath(strLocation) {
var objWord;
objWord = new ActiveXObject("Word.Application");
objWord.Visible = true;
objWord.Documents.Open(strLocation);
}
</script>
This is a simple tip that allows to display a text within an UniEdit control when it is empty (it would be great if UniEdit could have a property EmpryText to do this):
Just open UniEdit's ClientEvents and edit ExtEvents property
Add the following line in the "OnBeforerender" event:
sender.emptyText='text to display when the field is empty';
There is example at http://www.kavoir.co...es-in-html.html
but it uses activex so restricts functionality to IE
Glen
<script type="text/javascript">
function openWord(strFilePath) {
var yourSite = "http://www.yoursite.com";
openWordDocPath(yourSite + strFilePath);
}
function openWordDocPath(strLocation) {
var objWord;
objWord = new ActiveXObject("Word.Application");
objWord.Visible = true;
objWord.Documents.Open(strLocation);
}
</script>
This is a simple tip that allows to display a text within an UniEdit control when it is empty (it would be great if UniEdit could have a property EmpryText to do this):
Just open UniEdit's ClientEvents and edit ExtEvents property
Add the following line in the "OnBeforerender" event:
sender.emptyText='text to display when the field is empty';
相关文章推荐
- Why It is so hard to explain or show some thing
- add a splash to load system is easy:1:add spashWnd,then call it in instance ,when some work ok,close it.
- It is not possible to run two different versions of ASP.NET in the same IIS process.问题的解决
- WCF Failed to invoke the service. Possible causes: The service is offline or inaccessible
- The URL "filename" is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web
- [How To] Remove All Hyperlinks in Word or Excel
- It is not possible to run two different versions of ASP.NET in the same IIS process
- IELTS12 Test5 It is good to share as much information as possible in any areas
- Is it possible to use a checkbox in a split button list instead of the gear icon?
- Is it possible to implement IPv6 on a virtual interface (eth0:1 interface) in Linux?
- Sharepoint Error : The URL "filename" is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web
- It's possible your PC or network is sending automatic requests. To continue, please enter following
- Is it possible to display icons in a PopupMenu?
- The service cannot be activated because it does not support ASP.NET compatibility. ASP.NET compatibility is enabled for this application. Turn off ASP.NET compatibility mode in the web.config or add the AspNetCompatibilityRequirements attribute to the ser
- Is it possible to display icons in a PopupMenu?PopupMenu中显示图片是否可能
- webview使用遇到 It is possible that this object was over-released, or is in the process of deallocation错误的解决办法
- It is not possible to run two different versions of ASP.NET in the same IIS process:IIS
- This function has none of Deterministic,no sql,or reads sql data in its declaration and binary logging is enabled(you *might* want to use the less safe log_bin_trust_function_creators variable
- Saving Workbooks to PDF and XPS Formats in Excel 2007 (C#.net word excel powerpoint (ppt) 转换成 pdf 文件)
- [PHP] To display some attribute of the node in the XML document.