Oracle Forms 10g - 打开 msg 文件后关闭 IE
我们使用 Oracle 表单中内置的 web.show_document (web.show_document('file:///file_name','_blank') ) 来打开存储在某个位置的 Outlook 消息文件。
打开 msg 文件时,新的 IE 浏览器会与 msg 文件一起打开。用户需要关闭这个额外的浏览器。
We are using web.show_document built-in in Oracle forms (web.show_document('file:///file_name','_blank') ) to open outlook msg files stored at a location.
While opening msg files, a new IE browser gets open along with msg file. User need to close this additional browser.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我推断您一开始就不希望打开单独的 IE 浏览器?如果是这种情况,那么除了我下面介绍的之外,还有另一种选择。请继续阅读。
选项 1:
根据 Forms 文档,目标(“_blank”)参数有几个不同的可能值。
目标数据类型为 VARCHAR2。指定以下目标之一:
进入相同的框架或窗口
源文件。
加载到父窗口或
包含超文本的框架集
参考。如果引用位于
窗口或顶层框架,它是
相当于目标_self。
进入包含
超文本链接,替换任何框架
当前显示在窗口中。
要加载到新的、未命名的文档中
顶层窗口。
请注意,这些目标是小写的,并用单引号引起来。
选项 2:
如果您不想打开 IE 窗口,
WEBUTIL.PLL
中有一个名为WEBUTIL_HOST
的包。它将允许您从客户端的角度打开文件。我在这里冒险假设您提到的“file:///file_name”URI 是一个可能已经可以从客户端访问的文件路径。希望这会有所帮助,我在这里做了一些假设。如果您提供有关具体情况的更多信息,那将会很有帮助。
I infer that you do not wish the separate IE browser to be opened in the first place? If that is the case, then there is another option than what I present below. Read on.
Option 1:
From the Forms documentation, the target ("_blank") parameter has a few different possible values.
target Datatype is VARCHAR2. Specifies one of the following targets:
into the same frame or window as the
source document.
to load into the parent window or
frameset containing the hypertext
reference. If the reference is in a
window or top-level frame, it is
equivalent to the target _self.
into the window containing the
hypertext link, replacing any frames
currently displayed in the window.
document to load into a new, unnamed
top-level window.
Note that these targets are lowercase and enclosed in single quotation marks.
Option 2:
If you would rather not have an IE window open up at all, there is a package in
WEBUTIL.PLL
calledWEBUTIL_HOST
. It would allow you to open a file from the perspective of the client. I am going out on a limb here an making an assumption that the URI you mentioning as 'file:///file_name' is a file path that is likely accessible from the client already.Hope this helps, I made a few assumptions here. If you provide some more info on the specific situation, that would be helpful.