您的位置:首页 > 产品设计 > UI/UE

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';
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐