我尝试用HyperLink打印PDF,但没有成功。
我有一个包含数据的锁字段"etat“
数据的格式如下:
代号TAB Nom TAB地址TAB Ville 56 Eric rue caboteur ST NAZAIRE 87 Franc ST brevin等
项目3“地址”的textStyle设置为“链接和链接文本设置为""http://maps.google.fr/maps?f=q&hl=fr&q=theadresse"”
当我点击字段"etat“中的超链接项目时,它工作正常
现在,我希望在PDF中打印此字段后有相同的结果
我使用此代码进行打印
on mouseUp
local theResult,thepDF
ask file "" with type "PDF file|pdf|PDF "
if it = "" then
exit mouseUp
end if
put it into thePDF
put the htmltext of fld "etat" into theResult
--set the fileType to "revoPDF "
open printing to pdf thePDF
revPrintField the name of field "etat"
--revPrintText theResult,"<%pageNumber%> of <%numPages%>","<%pageNumber%> of <%numPages%>",the long id of field "etat" of stack "CDH"
close printing
end mouseUp我有一个很好的PDF与点击单词,但点击不启动谷歌地图
字典上说命令是"print link“
打印字段时,将设置了linkText属性和链接textStyle的任何文本视为已执行打印链接命令,并且属性的内容为链接,文本的formattedRect为矩形。
但是没有工作..。我头疼得厉害
感谢您的帮助,实现了这一点
埃里克
发布于 2013-07-15 01:38:25
我正在试着理解你的问题并通读你的代码,我想也许链接文本…
"http://maps.google.fr/maps?f=q&hl=fr&q=theadresse"应为…
"http://maps.google.fr/maps?f=q&hl=fr&q=" & theadresse这是假设address是一个变量,其中包含要在Google中搜索的有效地址。
https://stackoverflow.com/questions/17634449
复制相似问题