【发布时间】:2013-11-12 11:45:33
【问题描述】:
我正在使用 Delphi XE5 FireMonkey(带有更新 1)开发一个 iOS 应用。
我下载 PDF 并将它们存储在本地,然后使用 TWebBroswer 查看它们。这在我第一次下载文档或查看已下载的 PDF 时始终有效。但是,如果我下载并查看第二个 PDF,TWebBrowser 不会加载该文件。
if FileExists(filename) then
begin
WebBrowser1.Navigate('about:blank'); //clear page
WebBrowser1.Navigate('file://' + filename);
//filename points to a PDF on the local device and the file
//definitly exists
//first run always works 100%, second run comes into this IF statement
//but the DidFailLoadWithError is fired
end;
我正在尝试确定错误是什么。在 Navigate 周围放置一个 try...except 不起作用,并且 DidFailLoadWithError 不允许人们找到错误。 有关 DidFailLoadWithError '错误'的信息,请参阅:http://qc.embarcadero.com/wc/qcmain.aspx?d=115652
procedure Tform1.WebBrowser1DidFailLoadWithError(ASender: TObject);
begin
//ASender is a TWebBrowser
//No parameter with Error info!
end;
关于如何确定返回的错误有什么建议吗?
【问题讨论】:
标签: ios delphi mobile delphi-xe5