I am using Linux system(64-bit Linux) and LiveCode version 8, My objective is Displaying the PDF within a Rev stack, so that I am use the following code
Code: Select all
global sBrowserId
on openCard
browserOpen
end openCard
on browserOpen
put the windowid of this stack into tWinID
put revBrowserOpen(tWinID,"") into sBrowserId
revBrowserSet sBrowserId, "showborder","true"
revBrowserSet sBrowserId, "rect",rect of image "browser image"
end browserOpen
on browserClose
revBrowserClose sBrowserId
end browserClose
global sBrowserId
on mouseUp
local tFile
answer file "Please choose the file you would like to display" with type "PDF document|pdf|PDF"
if it is not empty then
put it into tFile
browserSetURL tFile
end if
end mouseUp
the browserSetURL handler is implemented in the card script
on browserSetURL pURL
answer pURL
revBrowserSet sBrowserId, "url", pURL
end browserSetURL


card "browserOpen": execution error at line n/a (External handler: exception) near "creation failed"
Thanksbutton "Browse": execution error at line n/a (External handler: exception) near "unknown browser id"
Shalu