首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VB >

欢迎大家动脑讨论,asp调用vb dll后,输出的只是e:\addf\csv,而小弟我想输出e:\addf\csv\2007-3-9-上午-11-36-51.x

2012-02-17 
欢迎大家动脑讨论,asp调用vb dll后,输出的只是e:\addf\csv,而我想输出e:\addf\csv\2007-3-9-上午-11-36-51

欢迎大家动脑讨论,asp调用vb dll后,输出的只是e:\addf\csv,而我想输出e:\addf\csv\2007-3-9-上午-11-36-51.xls,具体vb和asp程序如下
欢迎大家动脑讨论,asp调用vb   dll后,输出的只是e:\addf\csv,而我想输出e:\addf\csv\2007-3-9-上午-11-36-51.xls,具体vb和asp程序如下
Public   str   As   String
Public   Property   Let   strOutPath(s   As   Variant)
        str   =   s
        End   Property

Public   Property   Get   getOutPath()
  getOutPath   =   str
End   Property
Public   Function   aspexcel(ByVal   SQLStr   As   String)   As   Boolean

    Dim   sfilename   As   String
    sfilename   =   CStr(FormatDateTime(Now,   0))
        sfilename   =   Format(CDate(sfilename),   "yyyy-m-d-AMPM-hh:mm:ss ")
        sfilename   =   Replace(sfilename,   "AM ",   "上午 ")
        sfilename   =   Replace(sfilename,   "PM ",   "下午 ")
          sfilename   =   Replace(sfilename,   ": ",   "- ")     ' '
      str   =   sfilename
    sfilename   =   App.Path   &   "\ "   &   sfilename   &   ".xls "
        aspexcel   =   True
        Exit   Function
End   Function
<%
set   Myobj=server.CreateObject( "projectexcel.classexcel ")    
Myobj.strOutPath=Server.Mappath( "csv ")
response.write   Myobj.getOutPath
%>

[解决办法]
Public str As String

Public Property Let strOutPath(s As Variant)
str = s
call aspexcel( " ") ' ' ' ' ' ' ' ' ' ' ' '根据你的调用的情况,要执行一下,才能正确。
End Property

Public Property Get getOutPath()
getOutPath = str
End Property

热点排行