在iframe中加载.XLS文件 [英] Loading .XLS file in Iframe

查看:532
本文介绍了在iframe中加载.XLS文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好..............
我在i框架中加载.XLS文件时遇到了一些问题.
框架即将来临,但未加载文件


源页面的我的代码
............................................

Hello..............
I am having some problem about loading .XLS file in i frame.
The frame is comming but its not loading the file


MY CODE of source page
............................................

<asp:UpdatePanel ID="TreeViewUpdatePanel" runat="server">
                <ContentTemplate>
                <div>
                <iframe id="frmsReferrer1" src="" name="frmsReferrer1"  runat="server" marginwidth="0" frameborder="1" width="100%"
                height="500" scrolling="auto" ></iframe>
                </div>
                </ContentTemplate></asp:UpdatePanel>




IN页面加载
...................................................




IN page load
.............................................

GetIntraEAGInvoiceFileName = invFacade.GetNonUsIntraEAGInvoiceFile(InvoiceID, true, System.Web.HttpContext.Current);
frmsReferrer1.Attributes.Add("src", GetIntraEAGInvoiceFileName);


在上面,我有一种方法来检索文件路径并存储在字符串中,即GetIntraEAGInvoiceFileName.
路径正在尝试搜索字符串,但在页面加载时未加载


任何人都可以帮我解决这个问题......
预先谢谢你.........
此变量(GetIntraEAGInvoiceFileName)返回类似C:\ JivaDocsFolder \ C-Jivadoc \ PlayJiva \ Job \ P \ 02 \ G \ 01 \ 04 \ InvoiceC195473的路径.xls
每当我键入此URL时,我都会得到文件
但是当我将鼠标放在iframe id上时,它说的是innertext = null


In the Above i have one method retriving file path and storing in string i.e GetIntraEAGInvoiceFileName .
path is retriving asssing to string but on page load its not loading


anyone can help me about this...............
Thank u in advance..................
this variable (GetIntraEAGInvoiceFileName) returns the path like C:\JivaDocsFolder\C-Jivadoc\PlayJiva\Job\P\02\G\01\04\InvoiceC195473 .xls
When ever i type this url i am getting the file
but when i put mouse on iframe id its saying innertext=null
is there any problem?

推荐答案

http://social.msdn.microsoft.com /Forums/zh-CN/asmxandxml/thread/e475fa75-03e5-4cbf-8d0b-f44acaaa97dc/ [
http://atozfreshersinterview.blogspot.com/2012/08/word-documents-and-excel-documents-in.html[^]
http://social.msdn.microsoft.com/Forums/en-US/asmxandxml/thread/e475fa75-03e5-4cbf-8d0b-f44acaaa97dc/[^]


这篇关于在iframe中加载.XLS文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆