生成的报表如何存储在本地?
阳明腾越 2010-10-11 09:25:49 pb11开发的web程序,发布已经成功,各种查询报表都没有问题。
但是查询出来的报表,无法存储到本地计算机上,C/S下面是没有问题,“另存为”就可以选择本机上的文件夹进行存储。
发布成web程序后,使用ie登陆,查询报表,点击“另存为”的时候,不能选择本地文件夹,请问高手如何处理“存储为”的代码?急。谢谢
我的另存为的代码如下:【】内的部分
【
String ls_File, ls_Path, ls_Ext
GetFileSaveName("Save Report", ls_Path, ls_File, "xls", "excell Files (*.xls),*.xls, " + &
"Text Files (*.txt),*.txt, HTML Files (*.htm),*.htm")
If Trim(ls_Path) <> "" Then
ls_Ext = Lower(Right(ls_Path, 3))
Choose Case ls_Ext
Case "xls"
dw_1.SaveAsascii(ls_Path)
Case "txt"
dw_1.SaveAsascii(ls_Path, "|")
Case "htm"
dw_1.SaveAsascii(ls_Path, "|")
Case Else
MessageBox("Save Report", "The type of file saved is identified by the extension. " + &
"Use '.psr' for PSReport, '.txt' for Text, or '.htm' for HTML Table", Exclamation!, OK!)
Return
End Choose
End if
】