用不到虚拟打印机,只需要Sybase DataWindow PS,直接打印的话,就会生成pdf文件,把那个发布后加_root的文件夹的权限改为完全控制,就可以了[/quote]
我的代码如下
if ds_report.RowCount() > 0 then
#if defined PBWEBFORM then
if ds_report.SaveAs("myreport.pdf", PDF!, TRUE) <> -1 then
DownloadFile("myreport.pdf", true)
end if
#else
ds_report.Print()
#end if
end if
[/quote]
这样肯定会找不到地址的,需要转换
给你段代码
用不到虚拟打印机,只需要Sybase DataWindow PS,直接打印的话,就会生成pdf文件,把那个发布后加_root的文件夹的权限改为完全控制,就可以了[/quote]
我的代码如下
if ds_report.RowCount() > 0 then
#if defined PBWEBFORM then
if ds_report.SaveAs("myreport.pdf", PDF!, TRUE) <> -1 then
DownloadFile("myreport.pdf", true)
end if
#else
ds_report.Print()
#end if
end if